I cannot pass second as 6th param for cronjob
iamatulsingh opened this issue · 2 comments
iamatulsingh commented
For my purpose it's required to make cron exact with seconds paran in cron param (* * * * * *). I tried but it's throwing error that it require only 5 params. I saw the code a little and found seconds option is available.
Is there any way to fix this? By the way I'm using v3.
baabeetaa commented
from doc:
// Seconds field, required
cron.New(cron.WithSeconds())
iamatulsingh commented
@baabeetaa Thanks for the help!