A demo of Temporal workflow execution using pure bash and gRPC calls.
This demo implements a complete but simple Temporal workflow lifecycle using bash scripts and grpcurl. It includes:
- Starting a workflow execution
- Polling for workflow tasks
- Scheduling and executing activities
- Completing workflows
- Retrieving workflow history and results
- Temporal CLI: For running Temporal Server
- grpcurl: For making gRPC calls
- jq: For JSON processing
# Install Temporal CLI
curl -sSf https://temporal.download/cli.sh | sh
# macOS
brew install grpcurl jq
# Ubuntu/Debian
apt-get install grpcurl jq
# Or install grpcurl from: https://github.com/fullstorydev/grpcurltemporal server start-dev./run.sh -iPrompts for a name input and runs the complete workflow demo.
./run.shRuns the demo with "World" as the default name.
Run the test suite:
cd tests
./test.sh🚀 StartWorkflowExecution
┌────────┐ ┌────────┐
│ Worker │ -Start-> │ Server │
└────────┘ └────────┘
Generated workflow ID: bash-demo
Request: StartWorkflowExecution:
{
"namespace": "default",
"workflow_id": "bash-demo",
"workflow_type": {
"name": "TestWorkflow"
},
...
}
