Skip to content

[tech-debt] deprecated/run_until_complete: scripts/inbox-watcher.py:338 — run_until_complete usage; prefer asyncio.run() or await in an active loop #125

Description

@Duskript

[tech-debt] deprecated/run_until_complete

Field Value
File scripts/inbox-watcher.py
Line 338
Severity medium
Detected 2026-08-10T11:06:25Z
Author konan@duskript.dev

Context

  335 |     stop = asyncio.Event()
  336 |     install_signal_handlers(loop, stop)
  337 |     try:
  338 |         loop.run_until_complete(run_forever(stop))
  339 |     finally:
  340 |         loop.close()
  341 |     return 0

Recommendation

Prefer asyncio.run() at the process boundary or await within an existing event loop.

Labels

tech-debt, category:deprecated, severity:medium

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions