mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-27 19:59:43 -06:00
* api changes * doc changes * move docs * generated * generate * pkg * backmerge main * revert to main * revert main * race? * remove go tests
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())
|