MCPcopy Create free account
hub / github.com/apify/crawlee-python / handler_1

Function handler_1

tests/unit/crawlers/_basic/test_basic_crawler.py:2126–2132  ·  view source on GitHub ↗
(context: BasicCrawlingContext)

Source from the content-addressed store, hash-verified

2124
2125 @crawler_1.router.default_handler
2126 async def handler_1(context: BasicCrawlingContext) -> None:
2127 started_event.set()
2128 # Ensure that both handlers are running at the same time.
2129 await handler_barrier.wait()
2130 event_manager = service_locator.get_event_manager()
2131
2132 await handler_call(event_manager.active)
2133
2134 @crawler_2.router.default_handler
2135 async def handler_2(context: BasicCrawlingContext) -> None:

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
get_event_managerMethod · 0.80

Tested by

no test coverage detected