optimize first system installation and fix migrations

This commit is contained in:
team2
2026-02-12 18:56:15 +01:00
parent 994f582f35
commit 14d7f3b2b9
4 changed files with 5 additions and 36 deletions

View File

@@ -20,6 +20,7 @@ final class IngestOrchestrator
/**
* Startet Ingest für eine bestimmte DocumentVersion (1 Job pro Run).
* @throws \Throwable
*/
public function runForVersion(
DocumentVersion $version,
@@ -58,7 +59,7 @@ final class IngestOrchestrator
usleep(200000);
} else {
// Fachlogik ausführen (Flow erzeugt keine Jobs!)
$this->ingestFlow->ingestDocumentVersion($version, $job->getLogPath());
$this->ingestFlow->ingestDocumentVersion($version);
}
// Erfolg
@@ -69,6 +70,7 @@ final class IngestOrchestrator
return $job;
} catch (\Throwable $e) {
if ($job) {
$this->jobService->markFailed($job, $e->getMessage());
}