This is a playground for Temporal.io. It is a simple project that demonstrates how to use Temporal.io to orchestrate a workflow. It covers some basic and advanced features of Temporal.io.
- Go >1.22
- Temporal.io Server
- Clone the repository
- Run the Temporal.io Server using the following command:
temporal server start-dev
- Run the worker using the following command:
go run worker/main.go
- Run the http gateway using the following command:
go run gateway/main.go
To view the temporal web UI and follow each step in the workflow execution, visit http://localhost:8233. Visit http://localhost:8091/start to start the workflow. By default the timeout is set to 10 seconds. Go to http://localhost:8091/signal to signal the workflow to finish execution. Alternatively, go to http://localhost:8091/abort to abort the workflow execution. You can query the workflow status by visiting http://localhost:8091/status.