mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-02-20 23:29:15 -06:00
fix: python example (#1201)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user