mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
Suffix message class with 'Message' and add check on workflow to assert no transitions were applied since message placed in queue
This commit is contained in:
@@ -54,8 +54,8 @@ class CancelStaleWorkflowCronJob implements CronJobInterface
|
||||
|
||||
foreach ($staleWorkflowIds as $wId) {
|
||||
try {
|
||||
$this->messageBus->dispatch(new CancelStaleWorkflow($wId));
|
||||
$lastCanceled = $wId;
|
||||
$this->messageBus->dispatch(new CancelStaleWorkflowMessage($wId));
|
||||
$lastCanceled = max($wId, $lastCanceled);
|
||||
++$processedCount;
|
||||
} catch (\Exception $e) {
|
||||
$this->logger->error("Failed to dispatch CancelStaleWorkflow for ID {$wId}", ['exception' => $e]);
|
||||
|
Reference in New Issue
Block a user