Files
hatchet/sdks/python/examples/logger/worker.py
Matt Kaye 5062bf1e3e V1 SDKs and Docs (#1361)
New SDKs and docs for the v1 release.
2025-03-25 15:45:07 -07:00

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()