fix: python example (#1201)

This commit is contained in:
Matt Kaye
2025-01-19 15:17:42 -05:00
committed by GitHub
parent 61ae067014
commit 61a46509fc

View File

@@ -54,10 +54,11 @@ class MyWorkflow:
"result": "success"
}
worker = hatchet.worker('first-worker')
worker.register_workflow(MyWorkflow())
if __name__ == "__main__":
worker = hatchet.worker('first-worker')
worker.register_workflow(MyWorkflow())
worker.start()
worker.start()
```
Open a new terminal and start the worker with: