-
Notifications
You must be signed in to change notification settings - Fork 104
Description
It would be useful to me to know that a job is actually running before calling it.
I have created a simple class (a bit of a mash up, forgive me) which checks that a single job is available.
Most of the data transfer is copied from net_gearman, but this is tied in to retrieve the servers from GearmanCacheWrapper so multiple servers can be checked.
https://gist.github.com/orolin/7900abcab3330bf7f5b6
If this is functionality you think would be useful, how do you reckon it should be implemented?
Personally I would like it is when running a task/job, the client through a special exception.
The inconvenience at the moment (and this is about work distribution in general, not your project) is when running a do synchronous, the script will simply hang. Id like there to be some immediate feedback that something is wrong with either the worker or the daemon.