Skip to content

Re-enqueue immediately on missed job #7

@maltoe

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?

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