Skip to content

Allow separate debug mode configuration for workers vs flow runs #20652

@masonmenges

Description

@masonmenges

Current Behavior

Setting PREFECT_DEBUG_MODE on workers causes all flow runs executed by those workers to also log at debug level.

Desired Behavior

Provide a way to enable debug mode for workers independently from flow runs, so workers can run in debug mode without forcing debug logging on all flows they execute.

Workaround

Currently, setting PREFECT_DEBUG_MODE=false in the work pool's environment variables overrides the worker setting and prevents flow runs from inheriting debug mode. However, this requires manual configuration and isn't intuitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions