DEV Community

Call for Contributions: Move DelayedJob Calls to ActiveJob

Ben Halpern on September 13, 2019

Hey folks, we've been working on a gradual migration from DelayedJob to ActiveJob within the DEV codebase. Move de...
Collapse
 
techbos profile image
TechBos😎

If you are like me who is new to Ruby on Rails (RoR) and are unsure what is ActiveJob vs DelayedJob:

  • DelayedJob is one of the background job systems in RoR. There are also other job systems such as Resque or Sidekiq.
  • ActiveJob is a wrapper on top of DelayedJob. It's an abstraction layer that gives you freedom to switch the underlying job system implementation. E.g., you can use ActiveJob with DelayedJob and later switch to Resque without having to rewrite job code.

Read more:

Collapse
 
lightalloy profile image
Anna Buianova

Actually, the linked "Moved send_mention_notification to ActiveJob" is even a bit more complex comparing to the remaining tasks.
For the more similar ones, you can look at the pull requests connected to the issue, like this one:

Move HtmlVariantTrial.create delay calls to ActiveJob (#3173) #3239

cyrillefr avatar
cyrillefr commented on Jun 19, 2019
- add AJ job + job spec
- refactor call

What type of PR is this? (check all applicable)

  • [x] Refactor
  • [ ] Feature
  • [ ] Bug Fix
  • [ ] Documentation Update

Description

Move HtmlVariantTrial.create delay calls to ActiveJob

Related Tickets & Documents

#3136

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Added to documentation?

  • [ ] docs.dev.to
  • [ ] readme
  • [x] no documentation needed

[optional] What gif best describes this PR or how it makes you feel?

alt_text