You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In modules Resque::Plugins::JobStats::Duration and Resque::Plugins::JobStats::History I see two different callbacks that start from around_perform_? From what I understand it means that job run twice to measure the time, is it intentional behaviour?
I'm trying to make this gem work with ActiveJob and this is how I can make around_perform_ callbacks work
base.around_perform do |job, block|
job.class.methods.select do |meth|
meth.to_s.start_with?("around_perform_")
end.each do |meth|
job.class.send(meth) { block.call }
end
end
but in this case if we have more than 1 callback we call job few times. Could we discuss it?
The text was updated successfully, but these errors were encountered:
jeniaefimov
changed the title
Tasks run twice to measure duration for duration and history modules
Jobs run twice to measure duration for duration and history modules
Nov 24, 2020
In modules
Resque::Plugins::JobStats::Duration
andResque::Plugins::JobStats::History
I see two different callbacks that start fromaround_perform_
? From what I understand it means that job run twice to measure the time, is it intentional behaviour?I'm trying to make this gem work with ActiveJob and this is how I can make
around_perform_
callbacks workbut in this case if we have more than 1 callback we call job few times. Could we discuss it?
The text was updated successfully, but these errors were encountered: