-
Notifications
You must be signed in to change notification settings - Fork 12
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
Handle tracker not resolvable / reachable #58
Comments
Maybe the script should follow the behaviour of the perl stuff: try it every n seconds for a decent amount of time (like 100 times). If the tracker is unreachable, there is no downside in having the script "hang", it would not get a new workload on the next run anyways. |
I would prefer that it ends it self gracefully and get retriggert by the systemd unit timer. |
Yes, setting the ticket failed is useless because it will probably not work anyway. It will not be retriggered anyway: if setting ticket failed succeeds, it is not given to the worker again. If nothing is done with the ticket, it is still in state releasing and owned by the worker, and will also not be given to any worker without someone manually fixing this. Does producing an error have an impact on the systemd service/timer? Does systemd suspend the timer or something? |
At the point this error happens in the code the script has no ticket, so it will not work in any case :-) |
Ahhh okay. Then it makes perfectly sense to gracefully exit! I thought you're referring to the tracker communication at the end of the script run, when it tries to call "setTicketDone"! |
sorry is this was misleading. |
If the tracker is not reachable we still try to set the ticket failed which results in an error.
C3TT.setTicketFailed[b'C3TTException: A OS error occurred\nError message: [Errno -2] Name or service not known',
The text was updated successfully, but these errors were encountered: