mirror of
https://github.com/plashchynski/crono.git
synced 2026-01-13 13:53:27 +01:00
Crono runs the task just the first time #32
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vandamon on GitHub (Mar 31, 2016).
This is an awesome gem, if only it can do what it says.
Crono runs my tasks, but just once, for the first time.
My cronotab looks like this:
Any suggestions? Or is this a bug?
@Blacksmoke16 commented on GitHub (Apr 20, 2016):
+1
@klausmeyer commented on GitHub (May 10, 2016):
Try using
Rake::Task#executeinstead ofRake::Task#invoke.Background: Invoke only runs the task "if needed".
Since crono doesn't boot a fresh instance of your application per job execution (like regular cronjobs would do) the task is considered als already executed after the first run if you use
invoke.@vandamon commented on GitHub (Jun 22, 2016):
@klausmeyer Thanks a lot for the suggestion. I have it working now.