MCPcopy
hub / github.com/PrefectHQ/prefect / async_child_flow

Function async_child_flow

integration-tests/test_nested_cancellation.py:52–55  ·  view source on GitHub ↗
(marker_dir: str)

Source from the content-addressed store, hash-verified

50
51@flow(on_cancellation=[child_cancel_hook], log_prints=True)
52async def async_child_flow(marker_dir: str):
53 Path(marker_dir, CHILD_STARTED_MARKER).write_text("started")
54 while True:
55 await asyncio.sleep(0.2)
56
57
58@flow(on_cancellation=[parent_cancel_hook], log_prints=True)

Callers 1

async_parent_flowFunction · 0.70

Calls 2

write_textMethod · 0.80
sleepMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…