librelist archives

« back to archive

Joining jobs

Joining jobs

From:
Guido Marucci Blas
Date:
2013-09-11 @ 20:08
Hi, I need a way to join jobs and before I start coding I would like to
know if anyone had this problem before. I have a web app that given a user
action it enqueues several jobs I need to run a job after all of this jobs
are finished. Any ideas?

Thanks
-- 
| | | Guido Marucci Blas | | |

Re: [resque] Joining jobs

From:
Jake Wilkins
Date:
2013-09-11 @ 20:15
There's a plugin called resque-batched-job 
(https://github.com/drfeelngood/resque-batched-job) that does something 
along those lines.

In terms of your scenario, the multiple jobs for a given user become part 
of a batch, and resque-batched-job provides an "after_batch" hook that 
will run once the batch is empty where you could enqueue your final job.

Hope that helps! 

-- 
Jake Wilkins


On Wednesday, September 11, 2013 at 10:08 PM, Guido Marucci Blas wrote:

> Hi, I need a way to join jobs and before I start coding I would like to 
know if anyone had this problem before. I have a web app that given a user
action it enqueues several jobs I need to run a job after all of this jobs
are finished. Any ideas?
> 
> Thanks-- 
> | | | Guido Marucci Blas | | | 

Re: [resque] Joining jobs

From:
Guido Marucci Blas
Date:
2013-09-11 @ 20:30
Thanks Jake I will try that!


2013/9/11 Jake Wilkins <fredthehumancannonball@gmail.com>

>  There's a plugin called 
resque-batched-job<https://github.com/drfeelngood/resque-batched-job> that
> does something along those lines.
>
> In terms of your scenario, the multiple jobs for a given user become part
> of a batch, and resque-batched-job provides an "after_batch" hook that will
> run once the batch is empty where you could enqueue your final job.
>
> Hope that helps!
>
> --
> Jake Wilkins
>
> On Wednesday, September 11, 2013 at 10:08 PM, Guido Marucci Blas wrote:
>
> Hi, I need a way to join jobs and before I start coding I would like to
> know if anyone had this problem before. I have a web app that given a user
> action it enqueues several jobs I need to run a job after all of this jobs
> are finished. Any ideas?
>
> Thanks
> --
> | | | Guido Marucci Blas | | |
>
>
>


-- 
| | | Guido Marucci Blas | | |