I'm currently using Pheanstalk (beanstalkd) to process a number of jobs using multiple workers. I'm wondering if there is a common way to determine if all jobs are finished, as the workers are run asynchronously.
I've thought of adding a "finished" flag to the last job issued, and use workers to check for that flag. The problem is the last job isn't always the last one finished by workers. Workers can get hung up, crash etc.