We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to log the next run time of a job when the job is also "skipped" by the distributed locker.
Maybe registering a new event listener for when error in Lock, something like this:
job.RegisterEventListeners( gocron.BeforeJobRuns(func(_ string) { logrus.Info("Job Started") }), gocron.AfterJobRuns(func(jobName string) { logrus.WithField("next-run", job.NextRun()).Info("Job Finished") }), gocron.AfterLockerError(func(jobName string) { logrus.WithField("next-run", job.NextRun()).Info("Job Skipped") }), )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe
I would like to log the next run time of a job when the job is also "skipped" by the distributed locker.
Describe the solution you'd like
Maybe registering a new event listener for when error in Lock, something like this:
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: