mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-04-24 19:29:16 -05:00
5062bf1e3e
New SDKs and docs for the v1 release.
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()
|