optimize first system installation and fix migrations
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user