mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-04-24 02:59:55 -05:00
fix: python example (#1201)
This commit is contained in:
@@ -54,10 +54,11 @@ class MyWorkflow:
|
|||||||
"result": "success"
|
"result": "success"
|
||||||
}
|
}
|
||||||
|
|
||||||
worker = hatchet.worker('first-worker')
|
if __name__ == "__main__":
|
||||||
worker.register_workflow(MyWorkflow())
|
worker = hatchet.worker('first-worker')
|
||||||
|
worker.register_workflow(MyWorkflow())
|
||||||
|
|
||||||
worker.start()
|
worker.start()
|
||||||
```
|
```
|
||||||
|
|
||||||
Open a new terminal and start the worker with:
|
Open a new terminal and start the worker with:
|
||||||
|
|||||||
Reference in New Issue
Block a user