Skip to content

How to Prevent Pilled Up Job Executions in GoCron if Job Takes Longer than Scheduled Interval? #784

Answered by JohnRoesler
iyashjayesh asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like you're using v1. If you upgrade to V2, you can use Reschedule with singleton mode https://pkg.go.dev/github.com/go-co-op/gocron/v2#example-WithSingletonMode

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@iyashjayesh
Comment options

@iyashjayesh
Comment options

@JohnRoesler
Comment options

Answer selected by iyashjayesh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants