Updated mercure fields. Added finished_at
ogcore-debian-package/pipeline/head This commit looks good Details
testing/ogcore-api/pipeline/head There was a failure building this commit Details

pull/125/head
Manuel Aranda Rosales 2026-07-29 00:03:56 +02:00
parent 3ced3ced8b
commit 09eadaaad5
1 changed files with 6 additions and 1 deletions

View File

@ -42,7 +42,12 @@ class TraceStatusProgressNotifier
{
$update = new Update(
'traces',
json_encode(['@id' => '/traces/' . $trace->getUuid(), 'status' => $trace->getStatus(), 'progress' => $trace->getProgress()])
json_encode([
'@id' => '/traces/' . $trace->getUuid(),
'status' => $trace->getStatus(),
'progress' => $trace->getProgress(),
'finishedAt' => $trace->getFinishedAt()?->format(\DateTimeInterface::ATOM),
])
);
$this->hub->publish($update);