@@ -8,6 +8,7 @@ Before beginning this example walkthrough, it is recommended to have basic knowl
88- [ Docker Compose] ( https://docs.docker.com/compose/install/ )
99- [ Temporal CLI] ( https://docs.temporal.io/cli#install )
1010- [ Python 3] ( https://www.python.org/downloads/ )
11+ - [ pip] ( https://packaging.python.org/en/latest/tutorials/installing-packages/ ) (included with Python if you installed via Homebrew or python.org)
1112
1213## Running this Example
1314
@@ -20,14 +21,14 @@ Follow these steps to run this example:
20214 . Change to the parent directory: ` cd .. `
21225 . Start a development Temporal Server: ` temporal server start-dev `
22236 . Setup a virtual env: ` python3 -m venv env ` , then ` source env/bin/activate ` .
23- 7 . Install dependencies: ` pip install authzed temporalio psycopg `
24- 8 . Setup the Postgres DB and SpiceDB: ` python run_migrations.py`
25- 9 . Start the Temporal Worker: ` python run_worker.py`
24+ 7 . Install dependencies: ` python3 -m pip install authzed temporalio psycopg`
25+ 8 . Setup the Postgres DB and SpiceDB: ` python3 run_migrations.py`
26+ 9 . Start the Temporal Worker: ` python3 run_worker.py`
2627
2728### Experiencing Temporal
28- 10 . Run the Temporal workflow (worker should still be running while you are doing this): ` python run_workflow.py --author bob --post some_post`
29+ 10 . Run the Temporal workflow (worker should still be running while you are doing this): ` python3 run_workflow.py --author bob --post some_post`
293011 . Simulate a Postgres failure by stopping the Docker container running Postgres: ` docker stop dev-postgres `
30- 12 . Run the Temporal workflow (worker should still be running while you are doing this): ` python run_workflow.py --author bob --post another_post`
31+ 12 . Run the Temporal workflow (worker should still be running while you are doing this): ` python3 run_workflow.py --author bob --post another_post`
313213 . Notice that the initial attempt failed.
323314 . Restart Postgres: ` docker start dev-postgres `
333415 . Wait a few seconds and notice that the Postgres write activity succeeds and that the workflow succeeds. 😎
0 commit comments