Skip to content

Ensure records do not get stuck in processing state - #175

Merged
AlexanderWells-diamond merged 2 commits into
masterfrom
fix_on_update_processing
Sep 19, 2024
Merged

AlexanderWells-diamond merged 2 commits into
masterfrom
fix_on_update_processing

Conversation

@AlexanderWells-diamond

Copy link
Copy Markdown
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
@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