How to implement job groups/batches

27 views
Skip to first unread message

Shane

unread,
Apr 12, 2014, 6:21:14 PM4/12/14
to queue_...@googlegroups.com
I'd like to be able to tie a number of jobs together as a group and queue up another job whenever they are all done (by the same worker, multiple workers, doesn't matter). The way I have thought to do this is to, after each job is completed, make a worker select a limit 1 from the jobs table where group_id matches the group_id of a job just completed. I'm not sure what this will do for performance, though. Any thought on whether or not this is a good idea, or what a better way would be? Has anyone already done this?
Reply all
Reply to author
Forward
0 new messages