-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
The Correlation ID, Request ID and Client Request ID is currently added to each queued jobs payload and added to log context when the job is being processed. This works both with queued jobs, job chains and job batches.
Unfortunately I have not found a way to do this with the callables that can be used with job batches:
Bus::batch([
new FirstJob(),
new SecondJob(),
])->then(function (Batch $batch) {
Log::debug('Then: All jobs completed successfully...'); // No context unfortunately
})->catch(function (Batch $batch, Throwable $e) {
Log::debug('Catch: First batch job failure detected...'); // No context unfortunately
})->finally(function (Batch $batch) {
Log::debug('Finally: The batch has finished executing...'); // No context unfortunately
})
->allowFailures()
->dispatch();
Metadata
Metadata
Assignees
Labels
No labels