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

Ensure records do not get stuck in processing state #175

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

AlexanderWells-diamond
Copy link
Collaborator

If an exception occurs during an on_update callback, the "completion" function would never be called, which meant the PACT flag was never reset.

This had the end result of causing the affected record to never process again, i.e. its value could never be changed.

Also took the opportunity to add some protection to the cothread dispatcher against being passed and async function.

Fixes #170

If an exception occurs during an on_update callback, the "completion"
function would never be called, which meant the PACT flag was never
reset.
This had the end result of causing the affected record to never process
again, i.e. its value could never be changed.
@AlexanderWells-diamond AlexanderWells-diamond merged commit 35bb833 into master Sep 19, 2024
42 of 80 checks passed
@AlexanderWells-diamond AlexanderWells-diamond deleted the fix_on_update_processing branch September 19, 2024 13:31
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.

Exceptions in on-update processing can leave record in "active" mode
3 participants