Files
hatchet/sdks/python/examples/fanout_sync/trigger.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

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