jeudi 6 avril 2017

Laravel 5.1 Job dispatches other jobs - how to manage and keep track?

Within one job I would like to dispatch and manage other smaller jobs. When the last child job has finished, I would like to notify the parent job that all were successful.

If for some reason the child job failed, then also notify the parent accordingly.

Currently the parent job finishes as the first child job is dispatched and therefore no longer has visibility of what happens next. Previously I didn't have child jobs and just executed the code within the single parent job however, these aren't insufficient tasks and can vary drastically in execution time so this wasn't a viable solution.

Am I missing something?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire