activejob-stats
activejob-stats copied to clipboard
Stop double counting enqueueing stats
I was browsing the code base and saw this was called before and after enqueueing. I haven't tested it but it seems like it would cause double the counts.
Want a test to go with it?
Actually , the gems is falling with latest version of AJ. I'm going to push a new version tonight.
Thank you for your remark, i did not notice the typo, should be : before_enqueue :before_enqueue_stats, if: :monitored
There isn't a corresponding method for before_enqueue_stats though?