-
Notifications
You must be signed in to change notification settings - Fork 48
Complete action listener on failed synchronous workflow provisioning #1098
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
Complete action listener on failed synchronous workflow provisioning #1098
Conversation
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (34.37%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #1098 +/- ##
============================================
+ Coverage 76.25% 77.29% +1.03%
- Complexity 1079 1093 +14
============================================
Files 101 101
Lines 5285 5302 +17
Branches 505 509 +4
============================================
+ Hits 4030 4098 +68
+ Misses 1006 954 -52
- Partials 249 250 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
src/main/java/org/opensearch/flowframework/util/WorkflowTimeoutUtility.java
Outdated
Show resolved
Hide resolved
LGTM overall! One question similar to @amitgalitz – are we sure we want to allow releasing while provisioning might still be ongoing? Since our timeout logic doesn't cancel provisioning, it could still be running in the background. Would that cause issues if we release early? |
68ffb33
to
eab73e4
Compare
Tenant-aware listener: releases on failure, we need to release (exactly once) on success.
|
Signed-off-by: Daniel Widdis <[email protected]>
Yes, both @junweid62 and @amitgalitz called out correctly that for timeout we want to continue with the provisioning as we normally would for the "async" case. I've gone through all the code paths and updated the PR.
|
Signed-off-by: Daniel Widdis <[email protected]>
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/flow-framework/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/flow-framework/backport-2.x
# Create a new branch
git switch --create backport/backport-1098-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 0f04d61ef9994e3a5aa2d6c48b40ab9e1388771e
# Push it to GitHub
git push --set-upstream origin backport/backport-1098-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/flow-framework/backport-2.x Then, create a pull request where the |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/flow-framework/backport-2.19 2.19
# Navigate to the new working tree
pushd ../.worktrees/flow-framework/backport-2.19
# Create a new branch
git switch --create backport/backport-1098-to-2.19
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 0f04d61ef9994e3a5aa2d6c48b40ab9e1388771e
# Push it to GitHub
git push --set-upstream origin backport/backport-1098-to-2.19
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/flow-framework/backport-2.19 Then, create a pull request where the |
Description
During synchronous provisioning (and reprovisioning) the actionListener was never completed on an exception in the workflow steps (which throw an exception on
actionGet()
).Related Issues
Resolves #1097
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.