You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Throw WorkflowAbnormalExitException for failure/timeout/canceld/terminated (this naming is consistent with our naming for IdReusePolicy. ALLOW_IF_PREVIOUS_EXITS_ABNORMALLY
Throw WorkflowStillRunningException for long poll timeout in getSimpleResultWithWait , or still running for tryGettingSimpleResult
We may be able to keep backward compatibility:
Change WorkflowUncompletedException to an interface
WorkflowAbnormalExitException and WorkflowStillRunningException both implement from the interface and extend from ClientSideException
longquanzheng
changed the title
Maybe unify long poll timeout error with UncompletedException for getResultsWithWait api
[Maybe] Unify error handling for waitForWorkflowCompletion and tryGettingWorkflowResults
Jul 1, 2024
Today the withWait api will throw client side exception with long poll timeout sub status . Because this is a 4xx error from server.
iwf-java-sdk/src/test/java/io/iworkflow/integ/WorkflowUncompletedTest.java
Line 44 in 3409ea7
However, tryGetting api will throw UncompletedException.
this inconsistency could be a bit confusing.
The text was updated successfully, but these errors were encountered: