Skip to content

Rescheduling jobs option #5

Description

@russ

The requeue option needs to be a worker level configurable option. Right now with these following two lines, all jobs that fail will never be rescheduled.

The worker itself should have an option to set a maximum count for this. For example, something like this:

class MyWorker < TJLavin::QueuedJob
  def rescheduleable?(retry_count : Int32 = 0) : Bool
    retry_count <= 3
  end
end

The rescheduleable method should be overriden from the TJLavin::QueuedJob class where the default is always false.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions