Skip to content

Re-enqueue immediately on missed job #7

Description

@maltoe

It would be nice if the reschedule method could detect if a job had passed the next schedule time while running, and would re-enqueue it immediately instead of waiting for the next schedule time.

Better example:

  • We have a service that runs hourly to retrieve some updated data from an external API.
  • Usually it has a runtime of well under an hour and everything is fine.
  • Sometimes though, it might run for, let's say 1h10m, and thus miss the "next" schedule time.
  • Current behaviour is to schedule it for in 50mins then, but I'd like it to (optionally) reschedule immediately, so it can start processing the next batch of data right away.

What do you think?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions