-
Notifications
You must be signed in to change notification settings - Fork 47
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
Fix for lost error/escalation events #2075
Conversation
WalkthroughWalkthroughThe changes involve a modification to the conditional logic in the Changes
Tip We have updated our review workflow to use the Anthropic's Claude family of models. Please share any feedback in the discussion post on our Discord. Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- spiffworkflow-backend/src/spiffworkflow_backend/services/workflow_execution_service.py (1 hunks)
Additional comments not posted (1)
spiffworkflow-backend/src/spiffworkflow_backend/services/workflow_execution_service.py (1)
614-616
: Simplified the condition for raisingWorkflowExecutionServiceError
on unhandled events.The conditional logic for raising the error has been modified to remove the check for
self.bpmn_process_instance.is_completed()
. This means the error will now be raised if there are any unhandled events remaining inbpmn_event_groups
, regardless of the completion status of the process instance.Verify the impact of this change:
- Ensure raising the error more frequently does not cause any unexpected behavior or side effects in the rest of the codebase and system.
- Confirm if it is acceptable to raise the error even when the process instance is not completed.
Run this script to search for potential impact:
Work on #2037
The bugs in this ticket were related to unhandled error/escalation events that were lost during serialization (they have the same lifetime as message events from Spiff). This could be seen if instructions or a human task were present between the unhandled event and the end event for instance. Fix is to not check if the workflow is complete since these events are only returned by
get_events
if nothing in the workflow can handle them. Confirmed this in a chat with @essweine.Summary by CodeRabbit