I want to dispatch a job to the queue and wait for it to finish, but only for a certain timespan (e.g. 10 seconds). If it does not finish in that timespan I want to do A, otherwise B.
How can this be accomplished? The only way I have seen is using events or the Queue triggers, but there seems to be no uniform way of checking if a certain job is finished.
Maybe I'm just blind and there is an easy solution, but I'm looking forward to your replies.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire