Skip to content

Activity reset #1730

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Activity reset #1730

wants to merge 3 commits into from

Conversation

THardy98
Copy link
Contributor

What was changed

Added support to reset an activity. Cancellations due to reset are received through the heartbeat mechanism of the activity.

Why?

Part of activity operator work.

  1. Closes [typescript] SDK support for activity reset #1693

  2. How was this tested:
    Integration test

  3. Any docs updates needed?
    Likely

@THardy98 THardy98 requested a review from a team as a code owner June 19, 2025 11:50
@THardy98 THardy98 mentioned this pull request Jun 19, 2025
@THardy98 THardy98 marked this pull request as draft June 19, 2025 11:51
@THardy98 THardy98 changed the title Activity reset [BLOCKED] Activity reset Jun 19, 2025
@THardy98
Copy link
Contributor Author

Blocked on the merge of:
#1729

and server release that populates activity_reset in heartbeat response

@THardy98 THardy98 force-pushed the activity_pause_unpause branch 2 times, most recently from de50973 to 3ee7227 Compare August 13, 2025 15:14
Base automatically changed from activity_pause_unpause to main August 18, 2025 19:26
@THardy98 THardy98 changed the title [BLOCKED] Activity reset Activity reset Aug 18, 2025
@THardy98 THardy98 marked this pull request as ready for review August 18, 2025 21:50
await handle.client.workflowService.unpauseActivity(req);
} else {
const resetReq = { ...req, resetHeartbeat: true };
await handle.client.workflowService.resetActivity(resetReq);
Copy link
Member

Choose a reason for hiding this comment

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

I am looking into doing this in other langs too, can you confirm the current dev server supports this and/or do we need to upgrade to an RC one for tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As in supports the resetActivity call? Yes should be fine. Latest CLI version is 1.4.1, which has temporal server version 1.28.0. ResetActivity was included in 1.27.1 with some improvements in 1.28.0

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.

[typescript] SDK support for activity reset
2 participants