ruby on rails - Work Off ActiveJob Queue Programatically -


with delayedjob, it's possible instantiate worker complete jobs programatically:

delayed::worker.new.work_off # => [num_succesess, num_failures] 

does activejob provide interface doing same?

currently not if planned future? don't know. activejob provide interface creating new job , perform on background in limited way.

activejob provide only:

  • create new job , perform in background process
  • specify name of queue have used
  • ability retry job (but have specify conditions , calculate how time should wait before processed again)
  • nice interface sending emails via queue

it doesn't provide:

it limited right now, interested gem goes , how evolve.

i hope helps bit.


Comments

Popular posts from this blog

java - Ebean enhancement ignores a model -

javascript - Reference error while trying to encapsulate an animation function -

SQL php on different pages to Insert (mysqli) -