QUAL012warningFree tier

background-task-tracing

Ensures background task code includes unique trace IDs for debugging.

Applies to: JavaScript, Python, TypeScript

Why this matters

Every background thread/task should have a trace_id that appears in all its log messages. This enables grep-based log correlation when debugging stuck or failing jobs.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, QUAL012 includedstablestack explain QUAL012

False positive in your codebase? Suppress a single line with # noqa: QUAL012