mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-31 05:39:41 -06:00
* api changes * doc changes * move docs * generated * generate * pkg * backmerge main * revert to main * revert main * race? * remove go tests
16 lines
271 B
Python
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()
|