[Feature Request] [activejob] Job level response timeouts for active job

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

[Feature Request] [activejob] Job level response timeouts for active job

Ramkumar K R

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

  def perform(payment)
   # business logic

I am an avid fan of rails and would love to contribute.

Ramkumar K R

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.