Skip to content

Change log level from info to debug for Edge job fetch - #68736

Merged
dheerajturaga merged 2 commits into
apache:mainfrom
KidAmnesiac1:main
Jul 10, 2026
Merged

Change log level from info to debug for Edge job fetch#68736
dheerajturaga merged 2 commits into
apache:mainfrom
KidAmnesiac1:main

Conversation

@KidAmnesiac1

Copy link
Copy Markdown
Contributor

This changes the log level of the "No new job to process" message in fetch_and_run_job() from logger.info to logger.debug.

Why: An idle edge worker emits this message every job_poll_interval seconds for as long as no work is queued. In many deployments, workers spend the majority of their time idle — that's by design, since edge workers are often provisioned for bursty or on-demand workloads. The result is that this single message dominates the worker logs, drowning out genuinely useful INFO-level entries like job starts, completions, state changes, and heartbeat events.

Per Python's logging conventions, INFO should communicate "confirmation that things are working as expected" — meaningful milestones and state transitions. An idle worker having nothing to do is the expected steady state, not a notable event. By contrast, DEBUG is the correct level for routine operational chatter useful only when actively troubleshooting.

For comparison, the line immediately above it already uses the right level: logger.debug("Attempting to fetch a new job..."). The "no job found" outcome is the other half of the same operation and should match.

Impact: No behaviour change. Operators who want to see these messages can still set the edge worker log level to DEBUG. Everyone else gets cleaner logs at the default INFO level.


Was generative AI tooling used to co-author this PR?
  • No (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@boring-cyborg boring-cyborg Bot added area:providers provider:edge Edge Executor / Worker (AIP-69) / edge3 labels Jun 19, 2026
@potiuk potiuk added the ready for maintainer review Set after triaging when all criteria pass. label Jun 22, 2026

@henry3260 henry3260 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should modify

2025-09-27T12:28:33.171525Z [info ] No new job to process

as well

@KidAmnesiac1

Copy link
Copy Markdown
Contributor Author

@henry3260 Sorry for the delay, I've updated the docs as suggested.

This changes the log level of the "No new job to process" message in `fetch_and_run_job()` from `logger.info` to `logger.debug`.

*Why*: An idle edge worker emits this message every job_poll_interval seconds for as long as no work is queued. In many deployments, workers spend the majority of their time idle — that's by design, since edge workers are often provisioned for bursty or on-demand workloads. The result is that this single message dominates the worker logs, drowning out genuinely useful INFO-level entries like job starts, completions, state changes, and heartbeat events.

Per Python's logging conventions, INFO should communicate "confirmation that things are working as expected" — meaningful milestones and state transitions. An idle worker having nothing to do is the expected steady state, not a notable event. By contrast, DEBUG is the correct level for routine operational chatter useful only when actively troubleshooting.

For comparison, the line immediately above it already uses the right level: logger.debug("Attempting to fetch a new job..."). The "no job found" outcome is the other half of the same operation and should match.

Impact: No behaviour change. Operators who want to see these messages can still set the edge worker log level to DEBUG. Everyone else gets cleaner logs at the default INFO level.

@dheerajturaga dheerajturaga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that useful information can get buried deep with the no new job message. The changes look good

@dheerajturaga
dheerajturaga merged commit d24297f into apache:main Jul 10, 2026
149 of 150 checks passed
joshuabvarghese pushed a commit to joshuabvarghese/airflow that referenced this pull request Jul 16, 2026
* Change log level from info to debug for Edge job fetch

This changes the log level of the "No new job to process" message in `fetch_and_run_job()` from `logger.info` to `logger.debug`.

*Why*: An idle edge worker emits this message every job_poll_interval seconds for as long as no work is queued. In many deployments, workers spend the majority of their time idle — that's by design, since edge workers are often provisioned for bursty or on-demand workloads. The result is that this single message dominates the worker logs, drowning out genuinely useful INFO-level entries like job starts, completions, state changes, and heartbeat events.

Per Python's logging conventions, INFO should communicate "confirmation that things are working as expected" — meaningful milestones and state transitions. An idle worker having nothing to do is the expected steady state, not a notable event. By contrast, DEBUG is the correct level for routine operational chatter useful only when actively troubleshooting.

For comparison, the line immediately above it already uses the right level: logger.debug("Attempting to fetch a new job..."). The "no job found" outcome is the other half of the same operation and should match.

Impact: No behaviour change. Operators who want to see these messages can still set the edge worker log level to DEBUG. Everyone else gets cleaner logs at the default INFO level.

* Update log message in docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:edge Edge Executor / Worker (AIP-69) / edge3 ready for maintainer review Set after triaging when all criteria pass.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants