feat: add conditional flow execution and retry handling#600
feat: add conditional flow execution and retry handling#600jumski wants to merge 1 commit into01-14-add_docs_for_conditional_stepsfrom
Conversation
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
View your CI Pipeline Execution ↗ for commit 4b86712
☁️ Nx Cloud last updated this comment at |
d62437b to
c495ffd
Compare
pkgs/edge-worker/tests/integration/flow/retriesExhausted.test.ts
Outdated
Show resolved
Hide resolved
pkgs/edge-worker/tests/integration/flow/conditionalFlow.test.ts
Outdated
Show resolved
Hide resolved
pkgs/edge-worker/tests/integration/flow/retriesExhausted.test.ts
Outdated
Show resolved
Hide resolved
c495ffd to
42f0b9f
Compare
42f0b9f to
9277953
Compare
208f76f to
b7b1a8c
Compare
9277953 to
e2ec2de
Compare
b7b1a8c to
096d008
Compare
e2ec2de to
2e12137
Compare
… flow logic - Introduced new helper functions for creating flows and retrieving step states with skip and error info - Added detailed integration tests covering conditional step execution, skipping, cascade behavior, and optional dependencies - Included tests for 'if', 'ifNot', 'whenUnmet', 'whenFailed' conditions, and cascade vs non-cascade skips - Created a new test file for retries exhausted scenarios (placeholder for future tests)
2e12137 to
4b86712
Compare
096d008 to
85fde3b
Compare
🔍 Preview Deployment: Website✅ Deployment successful! 🔗 Preview URL: https://pr-600.pgflow.pages.dev 📝 Details:
_Last updated: _ |

Add conditional flow execution and retry handling
This PR introduces conditional flow execution and retry handling capabilities to the PGFlow system. It adds:
Conditional step execution with
ifandifNotpatterns that can:Retry exhaustion handling that can:
The implementation includes comprehensive test coverage for:
These features enable more robust workflow definitions with better handling of optional steps, error conditions, and dependencies between steps.