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 Temporal workflow #15

Merged
merged 11 commits into from
Oct 11, 2021
Merged

Add Temporal workflow #15

merged 11 commits into from
Oct 11, 2021

Conversation

mincong-h
Copy link
Owner

@mincong-h mincong-h commented Oct 10, 2021

Overview

Add samples about how to write workflows in Temporal and how to test them.

Testing

The new tests are taken into account in CI (https://github.com/mincong-h/learning-go/runs/3850524314):

=== RUN   TestWorkflowTestSuite
=== RUN   TestWorkflowTestSuite/TestWorkflow
2021/10/10 08:28:10 DEBUG handleActivityResult: *workflowservice.RespondActivityTaskCompletedRequest. ActivityID 1 ActivityType MyActivity
2021/10/10 08:28:10 INFO  Workflow completed. result Hello, UnitTest!
--- PASS: TestWorkflowTestSuite (0.00s)
    --- PASS: TestWorkflowTestSuite/TestWorkflow (0.00s)
PASS
ok  	github.com/mincong-h/learning-go/temporal/error_retries	0.008s

Blog

https://mincong.io/en/error-retries-in-temporal/

@mincong-h mincong-h merged commit c0d0559 into master Oct 11, 2021
@mincong-h mincong-h deleted the temporal branch October 11, 2021 21:08
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.

1 participant