The GitHub Actions job "Tests (AMD)" on airflow.git/main has succeeded.
Run started by GitHub user KidAmnesiac1 (triggered by KidAmnesiac1).

Head commit for run:
bca240f1e826edb4e5e80041a41f6dd14f41646d / KidAmnesiac1 
<[email protected]>
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.

Report URL: https://github.com/apache/airflow/actions/runs/27798851992

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to