Skip to content

Add Temporal workflow#15

Merged
mincong-h merged 11 commits into
masterfrom
temporal
Oct 11, 2021
Merged

Add Temporal workflow#15
mincong-h merged 11 commits into
masterfrom
temporal

Conversation

@mincong-h

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

Copy link
Copy Markdown
Owner

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