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

Method stop

src/crawlee/_utils/recurring_task.py:68–73  ·  view source on GitHub ↗

Stop the recurring task execution.

(self)

Source from the content-addressed store, hash-verified

66 )
67
68 async def stop(self) -> None:
69 """Stop the recurring task execution."""
70 if self.task:
71 self.task.cancel()
72 # Ensure the task has a chance to properly handle the cancellation and any potential exceptions.
73 await asyncio.gather(self.task, return_exceptions=True)

Callers 15

__aexit__Method · 0.95
test_start_and_stopFunction · 0.95
test_executionFunction · 0.95
__aexit__Method · 0.45
__aexit__Method · 0.45
__aexit__Method · 0.45
__aexit__Method · 0.45
__aexit__Method · 0.45
runMethod · 0.45
handlerFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_start_and_stopFunction · 0.76
test_executionFunction · 0.76
handlerFunction · 0.36