Timeouts (Pro Only)
Job Timeout
JoobQ.configure do |config|
config.timeout = 1.minute
endclass TimeoutJob
include JoobQ::Job
def perform
with_timeout(5.seconds) do
puts "This job will timeout if it exceeds 30 seconds."
end
end
endLast updated
Was this helpful?