mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-31 05:39:41 -06:00
* api changes * doc changes * move docs * generated * generate * pkg * backmerge main * revert to main * revert main * race? * remove go tests
19 lines
409 B
Python
19 lines
409 B
Python
import asyncio
|
|
|
|
from examples.fanout.worker import ParentInput, parent_wf
|
|
from hatchet_sdk import Hatchet
|
|
from hatchet_sdk.clients.admin import TriggerWorkflowOptions
|
|
|
|
hatchet = Hatchet()
|
|
|
|
|
|
async def main() -> None:
|
|
await parent_wf.aio_run(
|
|
ParentInput(n=2),
|
|
options=TriggerWorkflowOptions(additional_metadata={"hello": "moon"}),
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main())
|