Skip to content

Commit 6c62c0f

Browse files
author
Łukasz Bobiński
committed
Refactor: Remove unnecessary comments
1 parent 43bb12e commit 6c62c0f

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/a2a/server/request_handlers/default_request_handler.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,8 @@ async def _cleanup_producer(
450450
try:
451451
await producer_task
452452
except asyncio.CancelledError:
453-
# The producer task was cancelled, which is an expected outcome in some scenarios.
454-
# We don't want to stop cleanup in this case.
455453
logger.debug('Producer task %s was cancelled during cleanup', task_id)
456454
except Exception:
457-
# Log other exceptions from the producer task to avoid losing error information,
458-
# but continue with the cleanup process.
459455
logger.exception('Producer task %s failed during cleanup', task_id)
460456
await self._queue_manager.close(task_id)
461457
async with self._running_agents_lock:

0 commit comments

Comments
 (0)