-
Notifications
You must be signed in to change notification settings - Fork 894
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
INVALID_ARGUMENT thrown when trying to complete an activity thats already completed #2538
Comments
This is not a JavaSDK issue, this response code is defined by the server - transferring the issue into temporal/temporal repo. |
It looks that Also, Temporal Server may return a better message to help users understand what is the reason for the rejection. Maybe something like This way we don't disclose internal implementation details about the mutable state but provide enough information that the activity has to be in-progress at the moment. |
@Spikhalskiy This all makes sense. Changing the grpc code to
Given the SDK has the information about the activity if the response code is |
No, SDK just has
It's not really given. When we use ManualActivityCompletionClientImpl we are even outside of Temporal worker. The only thing that we have is basically an activityId and temporal API. |
I will update the error code and message. The server during this api call only has the context for lookup in mutable state. Perhaps instead of |
This is a safe and 100% correct message, yeah. But I was just thinking that we may give users the 99% message, but that may be immediately actionable and clear for them without even looking at history. I believe that in the vast majority of cases these two reasons will be causing the absence of activity in the mutable state if things work correctly and there are no bugs or some operational concerns that brought the mutable state in an incorrect state. Just keep in mind that history is a little bit scary for a lot of users. And often we say to users, they may be using Temporal without even deeply understanding the concept of history. |
Makes sense, I was hoping to have a more directional error message. |
* Update error code and message for missing activity task. Completes #2538 * review comments
The exception below is thrown when trying to complete an activity.
based on this thread https://community.temporal.io/t/reasonable-values-for-task-pollers/2257/2?u=darewreck it states that this could be due to
In my case, the argument gets thrown because the activity is already completed. Shouldn't another exception be thrown vs.
INVALID_ARGUMENT
The text was updated successfully, but these errors were encountered: