mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-30 21:29:44 -06:00
13 lines
263 B
Python
13 lines
263 B
Python
from examples.logger.client import hatchet
|
|
from examples.logger.workflow import logging_workflow
|
|
|
|
|
|
def main() -> None:
|
|
worker = hatchet.worker("logger-worker", slots=5, workflows=[logging_workflow])
|
|
|
|
worker.start()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|