Files
hatchet/examples/python/quickstart/worker.py
Gabe Ruttner 8e80faf2d6 Fe overhaul docs (#1640)
* api changes

* doc changes

* move docs

* generated

* generate

* pkg

* backmerge main

* revert to main

* revert main

* race?

* remove go tests
2025-04-30 14:10:09 -07:00

16 lines
271 B
Python

from .hatchet_client import hatchet
from .workflows.first_task import first_task
def main() -> None:
worker = hatchet.worker(
"first-worker",
slots=10,
workflows=[first_task],
)
worker.start()
if __name__ == "__main__":
main()