Hi, This idea is based on the queue_respond_timeout config provided by backburner.(Link - https://github.com/nesquena/backburner#enqueuing-jobs)
A rough draft on how it can look like - class ProcessPaymentJob < ApplicationJob
response_timeout 120.seconds
rescue_from(ActiveJob::JobTimedoutError) do |err|
# Error handling
end
def perform(payment)
# business logic
end
end
I am an avid fan of rails and would love to contribute.
Regards, Ramkumar K R