Is it possible somehow to execute rake task only if it is not running already,
I want to use cron for executing some rake tasks but rake task shouldn’t start if previous call is not finished
Thanks
Is it possible somehow to execute rake task only if it is not running
Share
I use lockrun to prevent cron tasks from running multiple times (this only works when invoking the command through the same
lockruninvocation, so if you need to protect from various invocation paths, then you’ll need to look for other methods).In your crontab, you invoke it like this: