Skip to content
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

Add sleep-for-days sample #384

Merged
merged 5 commits into from
Feb 6, 2025
Merged

Add sleep-for-days sample #384

merged 5 commits into from
Feb 6, 2025

Conversation

THardy98
Copy link
Contributor

This is a simple sample demonstrating Temporal's ability to sleep for days and still execute reliably.

##What was changed
added sleep-for-days sample

Any docs updates needed?
I believe so @webchick

@CLAassistant
Copy link

CLAassistant commented Jan 27, 2025

CLA assistant check
All committers have signed the CLA.

sigChan.Receive(ctx, &isComplete)
})

for !isComplete {
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be simpler to just check the signal channel every loop, also this sample is a bit different then the python one temporalio/samples-python@2f3f2ac. In the python one your signal takes no input, but the Go one does. I think we should match python here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the signal input (and workflow input).

@THardy98 THardy98 merged commit 4f4d6ef into main Feb 6, 2025
4 checks passed
@THardy98 THardy98 deleted the pithy-sleep-for-days branch February 6, 2025 18:03
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