Skip to content

SyncedCron detect jobs that never started with an intended time in the past #16

@tw-martijn

Description

@tw-martijn

This might not be something of interest to SyncedCron, but this was a behaviour I did not expect.

We had a job that never finished. I wanted the job to get started anew. I removed the startedAt date from the entry in the cronHistory collection, thinking that SyncedCron would see the intended time and restart. But nothing happened.

After taking another look at the code, it looks like jobs will only run at the time scheduled through _laterSetTimeout which is still going to be in the future.

It is not clear to me how to get a failed job to restart. Anyone have any tips?

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