Skip to content

Conversation

@samarabbas
Copy link
Contributor

What changed?
RequestCancelActivityTaskFailed was already removed in PR #355, so
this PR removes the unused EVENT_TYPE_REQUEST_CANCEL_ACTIVITY_TASK_FAILED
enum.
Removing all logic which results in CancelTimerFailed event in the
history when TimerCancel decision is made and instead fail the
entire decision.

Why?
Whenever workflow worker makes a cancel decision, requestCancelActivity
in the case of an activity and cancelTimer in the case of timer we
no longer fail the individual decision if we cannot find the activity
or timer to cancel. This means sdk code has a bug which resulted in
client code to be able to make cancellation decision in the first
place. We should be failing the entire decision like we do in all
other places.

How did you test it?
Unit and Integration Tests

Potential risks
No risk

@samarabbas samarabbas requested review from alexshtin and mfateev July 13, 2020 03:05
@samarabbas samarabbas force-pushed the remove-cancel-failed-events branch from 8b376fb to 1e48da6 Compare July 13, 2020 20:57
Copy link
Contributor

@alexshtin alexshtin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would start from https://github.com/temporalio/api repo, remove enums from it first, and then update go.temporal.io/api here to make sure that those enums are not used anywhere else.

Whenever workflow worker makes a cancel decision, requestCancelActivity
in the case of an activity and cancelTimer in the case of timer we
no longer fail the individual decision if we cannot find the activity
or timer to cancel.  This means sdk code has a bug which resulted in
client code to be able to make cancellation decision in the first
place.  We should be failing the entire decision like we do in all
other places.
RequestCancelActivityTaskFailed was already removed in PR temporalio#355, so
this PR removes the unused EVENT_TYPE_REQUEST_CANCEL_ACTIVITY_TASK_FAILED
enum.
Removing all logic which results in CancelTimerFailed event in the
history when TimerCancel decision is made and instead fail the
entire decision.
@samarabbas samarabbas force-pushed the remove-cancel-failed-events branch from 1e48da6 to c458516 Compare July 16, 2020 07:14
@samarabbas samarabbas merged commit 7e38997 into temporalio:master Jul 16, 2020
@samarabbas samarabbas deleted the remove-cancel-failed-events branch July 16, 2020 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants