You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "goingforstudying-ctrl (via GitHub)" <gi...@apache.org> on 2026/06/08 18:29:35 UTC
[PR] fix(google): use run_id instead of logical_date in StackdriverRemoteLogIO.read() filter [airflow]
goingforstudying-ctrl opened a new pull request, #68249:
URL: https://github.com/apache/airflow/pull/68249
Fixes Bug 2 from #68240.
## What
`StackdriverRemoteLogIO.read()` currently builds its Cloud Logging filter from
`_task_instance_to_labels()`, which includes `logical_date`. In Airflow 3's
supervisor model the `REMOTE_TASK_LOG` handler runs in the supervisor process,
which has no DB connection to convert `run_id` → `logical_date`. The filter
either crashes or returns no results.
## Fix
`read()` now constructs the filter labels directly using `run_id` instead of
`logical_date`. This matches the write path (Bug 1 / #68246) which already
emits `run_id` as a label extracted from the log path.
The `_task_instance_to_labels()` helper (used by the webserver-side
`StackdriverTaskHandler`) is left unchanged to avoid breaking log reads for
existing deployments that have `logical_date` labels.
## Changes
- Added `LABEL_RUN_ID` constant
- `StackdriverRemoteLogIO.read()` builds filter from `{dag_id, task_id, run_id, try_number}` — no `logical_date`
- Updated tests: existing `test_read_logs` / `test_read_logs_empty`
- New test `test_read_logs_uses_run_id_filter` verifies run_id in filter and absence of logical_date
relates to #68240
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use run_id instead of logical_date in StackdriverRemoteLogIO.read() filter [airflow]
Posted by "goingforstudying-ctrl (via GitHub)" <gi...@apache.org>.
goingforstudying-ctrl commented on PR #68249:
URL: https://github.com/apache/airflow/pull/68249#issuecomment-4756184443
Closing in favor of #68293 which has addressed all review points more comprehensively. Thanks for the review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use run_id instead of logical_date in StackdriverRemoteLogIO.read() filter [airflow]
Posted by "goingforstudying-ctrl (via GitHub)" <gi...@apache.org>.
goingforstudying-ctrl closed pull request #68249: Use run_id instead of logical_date in StackdriverRemoteLogIO.read() filter
URL: https://github.com/apache/airflow/pull/68249
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org