Skip to content

Commit be6294e

Browse files
committed
Even more logs
1 parent 8d79ada commit be6294e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/crawlee/_autoscaling/autoscaled_pool.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,16 @@ async def run(self) -> None:
136136
raise
137137

138138
finally:
139+
logger.error('finally')
139140
with suppress(asyncio.CancelledError):
141+
logger.error('self._autoscale_task.stop()')
140142
await self._autoscale_task.stop()
141143
with suppress(asyncio.CancelledError):
144+
logger.error('await self._log_system_status_task.stop()')
142145
await self._log_system_status_task.stop()
143146

144147
if not orchestrator.done():
148+
logger.error('not orchestrator.done()')
145149
orchestrator.cancel()
146150
elif not orchestrator.cancelled() and orchestrator.exception() is not None:
147151
logger.error('Exception in worker task orchestrator', exc_info=orchestrator.exception())
@@ -257,7 +261,7 @@ async def _worker_task_orchestrator(self, run: _AutoscaledPoolRun) -> None:
257261
raise
258262

259263
finally:
260-
logger.info(f'Finally pool. {finished=}, {(run.result.done())=}')
264+
logger.info(f'Finally pool. {finished=}, {(run.result.done())=}, {(run.result.result() if run.result.done() else None)=}')
261265
if finished:
262266
logger.info('`is_finished_function` reports that we are finished')
263267
elif run.result.done() and run.result.exception() is not None:

0 commit comments

Comments
 (0)