Skip to content
New issue

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

Canceling job if error #2

Open
AlexeyMRX opened this issue Nov 16, 2023 · 0 comments
Open

Canceling job if error #2

AlexeyMRX opened this issue Nov 16, 2023 · 0 comments

Comments

@AlexeyMRX
Copy link

Can you advise on what to do if a critical error occurs during job execution?

For example, let's say the job sends data to the database every 5 minutes and then sends an email with information about the transferred data. At some point, the database becomes unavailable, triggering an exception that should result in an email notification.

However, sending the email fails because the mail server is also unresponsive.

Ideally, I would like the program to stop executing altogether. How can this be achieved?

Currently, my program continues to run as if nothing happened in the next 5 minutes, and this cycle repeats indefinitely. I'm struggling to figure out what intervention is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant