Run a job once #256
-
Greetings, I am trying to run the jobs only once, and I would like to know if there is something for this or if I must necessarily run every then if I don't put it, it gives me an error
I am trying this
Now I'm doing this, I don't know if I'm making a mistake and something similar already exists. |
Beta Was this translation helpful? Give feedback.
Answered by
JohnRoesler
Nov 17, 2021
Replies: 1 comment 1 reply
-
Take a look at https://pkg.go.dev/github.com/go-co-op/gocron#Scheduler.LimitRunsTo |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JohnRoesler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Take a look at https://pkg.go.dev/github.com/go-co-op/gocron#Scheduler.LimitRunsTo