Skip to content

Conversation

@marcmengel
Copy link
Collaborator

So we've concluded that if the routines like ferry_update() raise an exception, the pythreader TaskQueue stops running them, but keeps running the other ones... so to make the daemon more reliable we want those routines to just log any exceptions and appear to finish to the TaskQueue so it will keep running them.

Done with a log_exceptions decorator, which assumes its decorating a method of a Logged object (i.e. it has a self.log() method)

@marcmengel marcmengel marked this pull request as draft November 12, 2025 22:25
@marcmengel
Copy link
Collaborator Author

Marking this as a draft until we can test it somewhat.

@marcmengel marcmengel self-assigned this Nov 12, 2025
@marcmengel marcmengel linked an issue Nov 12, 2025 that may be closed by this pull request
@marcmengel marcmengel marked this pull request as ready for review November 13, 2025 20:55
@marcmengel
Copy link
Collaborator Author

Tested under hypot instance on fifeutilgpvm03, with the patch, and then with the patch and an assert(False); it re-ran the method that was raising the exception repeatedly.

Copy link

@alisonpeisker alisonpeisker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

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

Successfully merging this pull request may close these issues.

Make the daemon more robust

3 participants