Skip to content

Lock implementation for only running 1 instance of a process at a time #856

@myupchar

Description

@myupchar

I have an issue where some scripts that need to be run every 10 min sometime take longer to finish. Although, I have implemented a clunky code check for locks etc to make it work, there are several edge cases (like crashes etc).

Is there a cleaner way to implement this via whenever gem? e.g. "with: lock" added to a line that can tell the cron to check for a lock file.

I will appreciate if someone has already done this by modifying this gem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions