Skip to content

Commit 9176ee2

Browse files
authored
RunCommandJobLauncher : id retention to async job (#14)
1 parent e19c57f commit 9176ee2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/batch-symfony-console/src/RunCommandJobLauncher.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function __construct(
5050
public function launch(string $name, array $configuration = []): JobExecution
5151
{
5252
$jobExecution = $this->jobExecutionFactory->create($name, $configuration);
53+
$configuration['_id'] = $configuration['_id'] ?? $jobExecution->getId();
5354
$jobExecution->setStatus(BatchStatus::PENDING);
5455
$this->jobExecutionStorage->store($jobExecution);
5556

0 commit comments

Comments
 (0)