harden code

This commit is contained in:
team 1
2026-02-15 16:01:08 +01:00
parent 5b100039e0
commit c099f72703
13 changed files with 397 additions and 59 deletions

View File

@@ -11,6 +11,7 @@ class IngestJob
public const TYPE_DOCUMENT = 'DOCUMENT';
public const TYPE_GLOBAL_REINDEX = 'GLOBAL_REINDEX';
public const STATUS_QUEUED = 'QUEUED';
public const STATUS_RUNNING = 'RUNNING';
public const STATUS_COMPLETED = 'COMPLETED';
public const STATUS_FAILED = 'FAILED';
@@ -94,6 +95,11 @@ class IngestJob
$this->finishedAt = new \DateTimeImmutable();
}
public function markRunning(): void
{
$this->status = self::STATUS_RUNNING;
}
public function getErrorMessage(): ?string
{
return $this->errorMessage;