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?