Skip to content

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

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?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions