Repository navigation
Description
Why
#67056 decoupled remote logging from the hardcoded if/elif chain in
airflow-core/src/airflow/config_templates/airflow_local_settings.py. Core and the Task SDK now
share one resolver (airflow_shared.logging.factory.resolve_remote_task_log) that dispatches on the
URL scheme of [logging] remote_base_log_folder via ProvidersManager and instantiates the
provider class through a no-arg from_config() classmethod.
The legacy per-scheme chain in airflow_local_settings.py is transitional: it stays as a fallback
until every remote logging backend has been migrated to the new mechanism. This issue tracks that
migration, one sub-issue per backend.
The pattern
Each migration is a small, self-contained PR with three parts (see the merged amazon examples:
s3 — #69817, cloudwatch — #69816):
-
Add
from_config()— a no-arg classmethod on the provider'sRemoteLogIOclass that mirrors
the corresponding legacy branch inairflow_local_settings.py, including the
[logging] remote_task_handler_kwargsIO-kwargs merge (where the legacy branch applies it) and
expanduseronbase_log_folder, so behavior is unchanged for existing configs. -
Register the scheme — add a
remote-logging:section to the provider'sprovider.yamland
mirror it inget_provider_info.py:remote-logging: - classpath: airflow.providers.amazon.aws.log.s3_task_handler.S3RemoteLogIO scheme: s3
-
Tests — mirror
TestS3RemoteLogIOFromConfigin
providers/amazon/tests/unit/amazon/aws/log/test_s3_task_handler.py:from_configfield mapping,
IO-kwargs filtering, scheme registration, and end-to-endresolve_remote_task_logdispatch. -
Real system test — set up the actual backend yourself (a real service or a local
equivalent), run a task with remote logging enabled, and verify logs are uploaded and read back
through the new dispatch path. Include the setup and verification results in the PR description.
If from_config() raises on a bad config, the shared factory falls back to the legacy path — so
these migrations are non-breaking by construction.
Backends
-
s3(amazon) — Add S3RemoteLogIO.from_config and register s3 remote logging scheme #69817 -
cloudwatch(amazon) — Add CloudWatchRemoteLogIO.from_config and register cloudwatch scheme #69816 -
gs(google) — Add GCSRemoteLogIO.from_config and register gs remote logging scheme #70266 -
stackdriver(google) — Add StackdriverRemoteLogIO.from_config and register stackdriver scheme #70267 -
wasb(microsoft.azure) — Add WasbRemoteLogIO.from_config and register wasb remote logging scheme #70268 -
oss(alibaba) — Add OSSRemoteLogIO.from_config and register oss remote logging scheme #70269 -
hdfs(apache.hdfs) — Add HdfsRemoteLogIO.from_config and register hdfs remote logging scheme #70270 -
elasticsearch— Add ElasticsearchRemoteLogIO.from_config and register elasticsearch scheme #70271 -
opensearch— Add OpensearchRemoteLogIO.from_config and register opensearch scheme #70272
Follow-up once backends are migrated
- Once all provider migrations are merged and released, add a deprecation warning to the
legacy branches inairflow_local_settings.py, gated on the provider versions that ship
from_config(step 2 of the plan in Decouple remote logging config from core #67056). - Remove the hardcoded remote logging config from core in a future minor or major release,
whichever the community prefers.
How to contribute
Comment on a sub-issue to claim it — one PR per scheme, following the merged amazon examples.
The elasticsearch and opensearch sub-issues include a small design decision (those backends are
currently selected by host config rather than URL scheme); design feedback is welcome there.
Activity
FrankYang0529 commentedon Jul 23, 2026
I would like to try #70272. Thank you.
aaron-y-chen commentedon Jul 23, 2026
Hi, I can work on #70266 and #70267. I have a GCP account that I can use for e2e verification.
jason810496 commentedon Jul 23, 2026
Hi @FrankYang0529, @nailo2c,
Would you mind to comment again at each sub-issues? Just in case someone comes across the sub-issue but doesn't take a look at this meta issue.
Thanks!
Andrushika commentedon Jul 23, 2026
Hi, I would like to take #70268, already commented in that issue. Thanks!
Prab-27 commentedon Jul 23, 2026
I'd like to work on #70269, commented on it , Thanks !
Vamsi-klu commentedon Jul 23, 2026
Add WasbRemoteLogIO.from_config and register wasb remote logging scheme
Add WasbRemoteLogIO.from_config and register wasb remote logging sche…
baha-bouali commentedon Aug 10, 2026
Hey @jason810496!
I'd like to take on the first follow-up task, which is adding deprecation warnings to the legacy
branches in
airflow_local_settings.py.Now that all 9 backends are merged, my proposed approach will be: a small helper that emits
RemovedInAirflow4Warningat the top of each of the 7elif remote_base_log_folder.startswith(...)branches (s3, cloudwatch, gs, wasb, stackdriver, oss, hdfs)2 things I'd like to confirm before making my PR:
Should the warning fire unconditionally whenever the branch executes (simpler, message just
tells the user to check their provider version), or should it check the installed provider
version via
importlib.metadataand only warn if that version already shipsfrom_config(avoids telling someone to "upgrade" when they're already on a new-enough version and
something else is actually wrong)?
elasticsearch/opensearchare gated onELASTICSEARCH_HOST/OPENSEARCH_HOSTrather thanURL scheme, so they don't fit this pattern the same way.
Thus, I'd propose covering just the 7 scheme-based backends here and leaving ES/OpenSearch for a separate follow-up once their dispatch design is settled, unless there's a preference for me to look at those too.
Happy to open a draft PR once there's rough agreement on the above.
jason810496 commentedon Aug 11, 2026
Hi @baha-bouali ,
I prefer to wait until all those providers be released than add the warning. So that the warning can include the version with provider manager integration supported. Regarding the ES and OS the warning message can contain the next step to configure the compatible upgrade. There isn't much difference even the existing gate check against the
ELASTICSEARCH_HOST.baha-bouali commentedon Aug 24, 2026
Hey @jason810496.
All 9 backends are now confirmed released, verified at three levels (not just version numbers):
For each: confirmed
from_configis present in the actual shipped wheel, confirmed thechangelog names that exact PR under that exact version, and confirmed that version is a real upload on PyPI.
Ready to start on the deprecation-warning follow-up whenever you'd like me to proceed.
jason810496 commentedon Sep 8, 2026
Sorry for the late reply. Yes, please feel free to raise the PR and tag me to review there.
kaxil commentedon Oct 1, 2026
All the items tracked here are now closed or merged. Can this be closed, or is there remaining work it should track?