Question: In Rails is there a way to group a series of active jobs executing in parallel and be notified when they all complete?

Question

In Rails is there a way to group a series of active jobs executing in parallel and be notified when they all complete?

Answers 0
Added at 2016-12-20 19:12
Tags
Question

In Rails is there a way to group a series of ActiveJobs executing in parallel on different instances of the same queue, and be notified when they all complete?

I'm trying to break up a large process into smaller processes, running on different machines at the same time.

Something like GCD Dispatch Groups: https://developer.apple.com/library/content/documentation/General/Conceptual/ConcurrencyProgrammingGuide/OperationQueues/OperationQueues.html#//apple_ref/doc/uid/TP40008091-CH102-SW25

I'm currently running Rails 5.0.0 and Ruby 2.3.1.

I'm currently using DelayedJob, but can switch to a different backing queue if one supported this feature.

When I say different instances of the same queue, I'm specifically referring to multiple worker instances on Heroku.

This seems like a common piece of functionality that someone else would have needed. I've tried searching the web for answers, but I think the combination of words makes irrelevant results come up.

Please let me know if there is more information that I can provide, and thanks in advance for your expertise.

Answers
Source Show
◀ Wstecz