Skip to content

fix missing sleep to properly poll inside activity #122

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 7 commits into from
Jun 11, 2024

Conversation

mnichols
Copy link
Contributor

@mnichols mnichols commented Jun 7, 2024

Current frequent polling implementation doesnt ever sleep after the mock service replies with a "service is down" Exception. This is supposed to be demonstrating polling inside the activity so let's add back the sleep and handle heartbeat error upon cancellation correctly.

@CLAassistant
Copy link

CLAassistant commented Jun 7, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

Looks great, thanks! May need to run a poe format on the repo to get it to pass CI.

@cretz
Copy link
Member

cretz commented Jun 11, 2024

Looks great, merge away

@mnichols mnichols merged commit ce12576 into temporalio:main Jun 11, 2024
9 checks passed
@mnichols mnichols deleted the pr-polling-frequent branch June 11, 2024 15:12
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