Commits
Click on a commit to change the comparison rangeFix process worker crash when flow file is missing during hook execution
Closes #18420
This PR fixes a bug where process workers would crash if they couldn't load a flow file when trying to run on_crashed or on_cancellation hooks. This commonly occurs when a flow file is deleted after deployment.
The fix ensures workers remain resilient by catching all exceptions (not just ObjectNotFound) when attempting to load flows for hook execution. The worker logs the error with full traceback but continues operating normally.
Changes:
- Modified `_run_on_crashed_hooks` to catch all exceptions with proper logging
- Modified `_run_on_cancellation_hooks` to catch all exceptions with proper logging
- Added integration test demonstrating worker resilience
- Added parameterized unit tests for various exception types
The integration test shows that workers can successfully run other flows after encountering a missing flow file, proving the fix maintains worker resilience.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>22 hours ago
by zzstoatzz rename file19 hours ago
by zzstoatzz