mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-07 01:09:38 -06:00
18 lines
385 B
Python
18 lines
385 B
Python
import asyncio
|
|
|
|
from examples.fanout_sync.worker import ParentInput, sync_fanout_parent
|
|
from hatchet_sdk import Hatchet, TriggerWorkflowOptions
|
|
|
|
hatchet = Hatchet()
|
|
|
|
|
|
async def main() -> None:
|
|
sync_fanout_parent.run(
|
|
ParentInput(n=2),
|
|
options=TriggerWorkflowOptions(additional_metadata={"hello": "moon"}),
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main())
|