Document REMOTE_TASK_LOG/DEFAULT_REMOTE_CONN_ID for custom logging configs - #71959
Open
anmolxlight wants to merge 1 commit into
Open
Document REMOTE_TASK_LOG/DEFAULT_REMOTE_CONN_ID for custom logging configs#71959anmolxlight wants to merge 1 commit into
anmolxlight wants to merge 1 commit into
Conversation
…nfigs When remote logging is enabled together with a user-defined [logging] logging_config_class, Airflow discovers the remote task log handler by reading two module-level attributes from the user's module: REMOTE_TASK_LOG and DEFAULT_REMOTE_CONN_ID. If REMOTE_TASK_LOG is missing, Airflow warns 'Remote log handler could not be loaded; logs will be available locally only.' and task logs stay local only. This section documents both attributes with a working example, mirroring the documentation already present on main. Fixes apache#71768 Signed-off-by: anmolxlight <anmolx.work@gmail.com>
uros-b
approved these changes
Aug 21, 2026
Member
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #71768
Problem
With
[logging] remote_logging = Trueand a user-definedlogging_config_class, Airflow 3.2.x discovers the remote task log handler by reading two module-level attributes from the user's module (discover_remote_log_handlerinshared/logging/src/airflow_shared/logging/remote.py):REMOTE_TASK_LOGDEFAULT_REMOTE_CONN_IDIf
REMOTE_TASK_LOGis missing, the scheduler warnsRemote log handler could not be loaded; logs will be available locally only.and task logs are never uploaded to the remote backend. The 3.2.2 documentation did not mention these attributes at all, so users migrating from 2.x (where a plain extendedLOGGING_CONFIGdict was enough) hit this silently. The section already exists onmain(and shipped in 3.3.x docs); this backports it to thev3-2-testbranch so the 3.2 docs match.Change
Backport the "Custom logging configs and remote logging" section from
mainintoairflow-core/docs/administration-and-deployment/logging-monitoring/advanced-logging-configuration.rst, including:REMOTE_TASK_LOGis missingMyRemoteLogIOexampleairflow_local_settingsDocs-only change; verified the referenced API (
airflow.logging.remote.RemoteLogIO, discovery of both globals) exists on thev3-2-testbranch.