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

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -