mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
31021c780f
Motivation: - Currently we have 2 seperate monkey patches in place for tracking enqueded time for 2 seperate workers. It seems that activejob could be a source of truth for how long an item has been enqued so that we can easily use it for consistent monitoring across workers/apps to ensure that jobs are running at an acceptable speed. Changes: - Add an enqueded at attribute and serilization tooling. - Add a method to get how long a job has been enqueded for. - Add a logging item to show how long a job was enqued prior to the perform method firing. |
||
---|---|---|
.. | ||
active_job | ||
rails/generators/job | ||
active_job.rb |