Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 1.09 KB

2022-07-19_activejob.perform_now-doesn't-run-execute-callback.md

File metadata and controls

15 lines (12 loc) · 1.09 KB

ActiveJob.perform_now doesn't run execute callback

Calling Job.perform_now runs "regular" callbacks for perform & enqueue, because of this line but doesn't run the execute callbacks, because it's only run for .execute, which is called by the various adapters, like for Sidekiq

The CurrentAttributes callbacks are registered here and the callback around execute for Active Job is registered here