Skip to content

Heartbeat for long running activity #9852

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

Merged
merged 2 commits into from
Jan 27, 2022
Merged

Conversation

benmoriceau
Copy link
Contributor

What

Add an heartbeat for tghe long running activities

@github-actions github-actions bot added area/platform issues related to the platform area/worker Related to worker labels Jan 27, 2022
@benmoriceau benmoriceau temporarily deployed to more-secrets January 27, 2022 19:59 Inactive
Copy link
Contributor

@jrhizor jrhizor left a comment

Choose a reason for hiding this comment

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

Looks good. Here or in a separate PR, can we make SHORT_RUN_OPTIONS with a start to close timeout of like 5 min for other activities?

@@ -26,4 +26,11 @@
.setRetryOptions(TemporalUtils.NO_RETRY)
.build();

public static final ActivityOptions LONG_RUN_OPTIONS = ActivityOptions.newBuilder()
.setScheduleToCloseTimeout(Duration.ofDays(MAX_SYNC_TIMEOUT_DAYS))
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we want this to be start to close, not schedule to close.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It s propagated to all the other arguments. Will make it explicit.

@benmoriceau
Copy link
Contributor Author

Looks good. Here or in a separate PR, can we make SHORT_RUN_OPTIONS with a start to close timeout of like 5 min for other activities?

I was think about doing that in another PR in order to limit the change that will be released.

@benmoriceau benmoriceau temporarily deployed to more-secrets January 27, 2022 21:58 Inactive
@benmoriceau benmoriceau merged commit 2ac3274 into master Jan 27, 2022
@benmoriceau benmoriceau deleted the bmoric/add-heartbeat-timeout branch January 27, 2022 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform area/worker Related to worker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants