Repository navigation
Releases
Apache Airflow TypeScript SDK 1.0.0
First stable release of the Apache Airflow TypeScript SDK.
Changes since 1.0.0-beta2:
- A task that passes
queueasundefinednow inherits the Dag's queue. - The build no longer uses a machine-global pnpm config that created stray
.pnpm-storedirectories.
Published on npm as @apache-airflow/ts-sdk@1.0.0.
Apache Airflow Java SDK 1.0.0
First stable release of the Apache Airflow Java SDK.
Changes since 1.0.0-beta1:
- Native Java Dag authoring, serialized to DagSerialization v3: task dependencies, task groups, branching and conditions, edge labels
- Triggering other Dags
- Task state store and Variable APIs
- Many fixes and hardening improvements
Maven artifacts are published under group id org.apache.airflow; import airflow-sdk-bom:1.0.0 to keep module versions aligned.
Apache Airflow Go SDK 1.0.0
First stable release of the Apache Airflow Go SDK.
Changes since 1.0.0-beta4:
- Fix the Go SDK build on 32-bit targets.
- Fix the install command breaking the first bundle build.
- Log attributes no longer displace standard log fields.
ti_runnow loads the serialized Dag only for stub tasks.
Install with:
go get github.com/apache/airflow/go-sdk@v1.0.0
API reference: https://pkg.go.dev/github.com/apache/airflow/go-sdk@v1.0.0
Apache Airflow 3.4.0
📦 PyPI: https://pypi.org/project/apache-airflow/3.4.0/
📚 Docs: https://airflow.apache.org/docs/apache-airflow/3.4.0/
🛠 Release Notes: https://airflow.apache.org/docs/apache-airflow/3.4.0/release_notes.html
🐳 Docker Image: "docker pull apache/airflow:3.4.0"
🚏 Constraints: https://github.com/apache/airflow/tree/constraints-3.4.0
Significant Changes
Task Loops (#73005, #74222, #74275, #74345)
Airflow 3.4.0 introduces Task Loops (AIP-111): a decorated task group can be repeated a number of
times decided at runtime using .loop(). A conditional loop works like a do ... while loop -
the body runs at least once and an until condition decides when to stop, bounded by
max_iterations. Each iteration can use the previous iteration's result and iterations run one
after another (tasks within an iteration can still run in parallel). Retried attempts are kept
under a per-attempt UUID so each iteration's data is preserved and can be cleared selectively.
For detailed usage instructions, see :doc:/authoring-and-scheduling/loops.
.. note::
Downgrading to any version earlier than 3.4.0 can be slow, depending on the number of
XCom rows that have been written after upgrading. Upgrading was tested on a
300m row XCom table, so please don't worry about upgrade time (we made sure
that the XCom data didn't get touched or read during migration to keep it
fast).
This is because this release contains a migration that starts storing new XCom
rows in an xcom_v2 table, and in order to downgrade we have to move those over
to the old table, and there is no way of doing this without copying the
written xcom values.
The downgrade refuses to continue when it finds data it cannot map back
safely. Each migration commits separately, so the later 3.4.0 migrations
have already been reversed at that point: fix the data and re-run the
downgrade, or run airflow db migrate to return to 3.4.
On MySQL a failure after those checks leaves the schema partly downgraded,
as MySQL cannot roll back DDL. Taking a backup before attempting the
downgrade on MySQL is advised, so it can be restored in that case.
Dag Importer for non-Python Dags (#72369, #73728, #73853, #74020, #74084, #74333, #74586)
Airflow 3.4.0 can author an entire Dag - schedule, tasks, and dependencies - in a language other
than Python. AIP-85 adds a pluggable Dag Importer in the Task SDK that teaches the Dag processor to
recognize source formats beyond .py: each format registers an importer, the processor runs the
matching language runtime, and the resulting Dags surface in Airflow like Python Dags. The formats
that land on it are the TypeScript, Go, and Java language SDKs and a native YAML Dag format (a
.yaml file with a $schema marker, validated against a schema and built into real operators,
with explicit templating). The Dag Importer framework and the language SDKs are experimental in 3.4
and their APIs may change.
For detailed usage instructions, see :doc:/administration-and-deployment/dag-importers.
Unify executor workload queues under BaseExecutor.executor_queues (#63491)
Executor workload state is now stored on the unified BaseExecutor.executor_queues mapping keyed
by WorkloadType and scheduled through trigger_workloads. The previous per-type attributes
and entrypoints (queued_tasks, queued_callbacks, supports_callbacks, trigger_tasks,
order_queued_tasks_by_priority) and the Airflow 3.3 connection-test surface are folded into
this mapping and kept as backward-compatible shims that emit RemovedInAirflow4Warning (to be
removed in Airflow 4.0). Out-of-tree executors should declare supported_workload_types and
implement trigger_workloads. Connection tests are now admitted under the same per-heartbeat
budget as tasks and prioritized ahead of them. See
#63491 <https://github.com/apache/airflow/pull/63491>_ for the full migration guide.
psycopg3 is now the default Postgres driver (#68496)
psycopg3 (psycopg) is now the default driver for the metadata database, for both the sync and
the async engine, replacing psycopg2 and asyncpg. A bare postgresql:// (or a legacy
postgres:// / postgres+psycopg2://) sql_alchemy_conn is rewritten to
postgresql+psycopg://, and the derived async URL uses postgresql+psycopg_async:// when
psycopg3 is installed (falling back to asyncpg otherwise). Airflow also disables psycopg3's
server-side statement preparation (prepare_threshold = None) so the metadata database works out
of the box behind transaction-mode PgBouncer, the recommended production setup. To keep psycopg2 or
asyncpg, install the apache-airflow-providers-postgres[psycopg2] / [asyncpg] extra and
configure the connection explicitly; see #68496 and #69469 for details, including how to re-enable
statement preparation.
Asset-triggered Dags create one run per event by default (#68517)
Single-asset schedules and asset OR expressions now create one Dag run per event instead of
consuming all queued events in one run. This also applies to AssetOrTimeSchedule and
PartitionedAssetTimetable.
To retain batching, set batch_asset_events=True on the timetable or enable [scheduler] batch_asset_events and reparse the affected Dags. Already serialized timetables without this
option retain their previous batching behavior until reparsed.
Schedules requiring several events, including schedule=[a, b], asset AND expressions, and
partitioned timetables using RollupMapper, continue to batch by default. Explicitly setting
batch_asset_events=False for these schedules raises a timetable validation error.
Custom graph colors return via ui_color and ui_fgcolor (#68760)
The ui_color and ui_fgcolor attributes on operators and TaskGroups color the graph view
again -- the node fill from ui_color and the operator label from ui_fgcolor, as they did in
Airflow 2. They were silently ignored since Airflow 3.0.
The value can be a raw color (a hex code like #e8b7e4 or a CSS name) or a Chakra theme token --
a palette token such as blue.500 or a semantic token such as brand.solid that adapts to
light and dark mode (including tokens added through custom UI theming); a token resolves through a
theme-controlled CSS variable. The node border keeps reflecting the task-instance run state; the
custom color is applied to the fill and label only.
validate_key now raises ValueError instead of AirflowException (#68890)
The airflow.utils.helpers.validate_key utility now raises ValueError instead of
AirflowException when an invalid key is provided (for example an invalid format or a
length-limit violation).
The deprecated Dataset alias has been removed from the airflow module (#70154)
Use Asset from airflow.sdk instead.
Audit log rows not tied to a Dag now require the AUDIT_LOGS_ALL view (#70759)
Rows in the audit log whose dag_id is NULL record operations that are not tied to a Dag,
such as Connection, Variable and Pool changes. They were returned to any caller that could read
event logs at all, because there is no per-Dag key to authorize them on and both read paths fell
back to a Dag-level audit log check.
They are now gated on a dedicated AccessView.AUDIT_LOGS_ALL, in the same way
AccessView.IMPORT_ERRORS_ALL gates import errors for files with no registered Dag. Rows bound
to a Dag keep their existing per-Dag check.
GET /eventLogsno longer returns rows with aNULLdag_idto callers without the new
view, and excludes them fromtotal_entriesand pagination.GET /eventLogs/{event_log_id}
returns403for such a row. An id matching no row still returns404.- With the simple auth manager the view is granted to the
ADMINrole only. With the FAB auth
manager it maps to a newAll Audit Logsresource, which ships in theAdminrole; custom
roles that need to read these rows must be grantedAll Audit Logs.can_readexplicitly. - An auth manager that cannot map a requested
AccessViewnow denies that view and emits a
UserWarninginstead of raisingKeyError. This affects auth managers older than the core
they run against, which previously failed the request with a server error.
Team names must now be lower case, and cannot contain two consecutive underscores (#70886)
airflow teams create and airflow teams sync now accept only names matching
(?!.*__)[a-z0-9_-]{3,50} -- lower case letters, digits, hyphens and single underscores. Upper
case letters and __ were previously accepted.
A team name is embedded in the AIRFLOW_CONN__<TEAM>___<ID> environment variable namespace that
holds team scoped secrets, and the backend upper-cases the name when it builds that variable.
data_eng and Data_Eng therefore resolved a single namespace between them, and a name
containing ___ could not be told apart from the separator.
airflow db migrate lower-cases every stored team name, moving that team's Dag bundles,
Connections, Variables, Pools and Triggers with it. Two stored names that differ only in case would
collapse onto one row and silently merge two teams, so migration refuses to start while any such
pair exists -- rename all but one first. Names that stay invalid for another reason, such as
containing __, are migrated as they are; they keep working, but airflow teams sync exits
non-zero until they are renamed.
Changes to how pending asset events trigger Dag runs (#70972)
Deleting asset event records with airflow db clean now also removes any asset events that are
still pending for a downstream Dag. This mainly affects Dags waiting on a multi-asset condi...
Apache Airflow 3.3.2
📦 PyPI: https://pypi.org/project/apache-airflow/3.3.2/
📚 Docs: https://airflow.apache.org/docs/apache-airflow/3.3.2/
🛠 Release Notes: https://airflow.apache.org/docs/apache-airflow/3.3.2/release_notes.html
🐳 Docker Image: "docker pull apache/airflow:3.3.2"
🚏 Constraints: https://github.com/apache/airflow/tree/constraints-3.3.2
Significant Changes
Backfill endpoints no longer disclose which backfill ids exist across Dags
The four routes that name a backfill in their path -- GET /backfills/{backfill_id}
and the pause, unpause and cancel routes -- resolved the Dag they authorize
against from the dag_id supplied on the request whenever the path's id matched no row.
An unknown id and a backfill on a Dag the caller cannot see therefore answered differently,
which enumerates backfill ids across Dags.
The backfill named in the path is now the only thing those routes authorize against.
Behaviour changes:
- Requesting a backfill on a Dag the caller cannot read now returns
404
(Backfill not found) -- the same response an unknown id gets -- instead of the
403returned before. A caller who can read the Dag still gets403for a write
they are not allowed to make. - A
backfill_idin the path is never authorized against adag_idin the request body
or query string.GET /backfills,POST /backfillsandPOST /backfills/dry_run
name no backfill in their path and keep authorizing off the request. - All four routes now answer an unknown id with the same detail,
Backfill not found.
Thepause,unpauseandcancelroutes previously answered
Could not find backfill with id {backfill_id}. Clients matching ondetail
must be updated. (#71113)
An explicit credential now takes precedence over the session cookie
get_user() is written to prefer an explicit bearer token, then OAuth2, then the
session cookie, but that precedence was unreachable whenever a cookie was present.
JWTRefreshMiddleware runs
first, resolves a user from the _token cookie alone and stamps it on
request.state, and get_user() returned that cached user before looking at either
explicit credential. The effective order on every core-API route was cookie over bearer.
A request carrying both a session cookie and an explicit credential therefore executed,
and was recorded in the audit log, as the cookie's principal rather than the identity the
client presented. The cached user is now honoured only when the request carries no
explicit credential.
Behaviour changes:
A request carrying both a _token cookie and an Authorization: Bearer header
is now resolved as the bearer token's principal, where it was previously resolved as the
cookie's. The same applies to a cookie combined with an OAuth2 token.
An invalid or expired explicit credential is now rejected with 401/403 even
when a valid ``_token`` cookie accompanies it. Previously the cookie silently took over
and the request succeeded as the cookie's principal; the failure is now loud.
Requests carrying a single credential are unaffected. Cookie-only browser sessions keep
the token-refresh behaviour of ``JWTRefreshMiddleware`` unchanged.
Clients that relied on the cookie winning -- for example a browser-based tool that sent a
service account's bearer token while a user session cookie was present, and expected the
user's identity to apply -- will now act as the bearer token's principal. Remove the
header, or the cookie, to select the intended identity explicitly. (#72225)
Bug Fixes
- Optimize the previous-task-instance lookup by removing a redundant
dag_runjoin (#72944) - Revoke every credential presented to the logout endpoint, not just the session cookie (#72933)
- API: Return HTTP 404 instead of 500 when a task starts against a missing Dag run (#72900)
- Fix
airflow db cleannever purging thecallbacktable (#72899) - Fix the Dag version inflation check not warning about custom
DAGsubclasses or aliased-module imports (#72898) - Fix
DeadlockImminentErrorwhen a connection is resolved inside an async task (#72895) - Fix dag processor crash when an orphaned processor is killed (#72888)
- Prevent corruption of
XComvalues that already parse as JSON during the bytea-to-JSONB migration (#72886) - Fix HTTP 500 for non-dict JSON bodies on the Variable and Connection API endpoints (#72878)
- Fix resolution of deprecated imports in
airflow.utils.helpers(#72868) - Bound single-row lookups with
LIMIT 1to avoid scanning large tables (#72842) - UI: Fix clipping of the Last Run state badge (#72841)
- UI: Fix Calendar view computing planned cron runs in UTC instead of the Dag's timezone (#72839)
- Fix
airflow info --file-iouploading an empty report (#72832) - Preserve custom operator defaults in mapped tasks (#72828)
- Gate the asset event
partition_keybehind the 2026-06-30 Execution API version (#72827) - Improve deadline diagnostics for null
DagRunfields (#72812) - Fix missing HTTP access logs when the api-server omits the core app (#72808)
- Clarify when the auth manager
is_authorized_hitl_task(Human-in-the-loop) hook runs (#72807) - Fix
td_formatrendering of negative durations (#72798) - UI: Make copied task log text match the on-screen format (#72771)
- UI: Fix connection test with a null host and port (#72747)
- Allow
airflow jobs check --allow-multiplewith--limit 0(#72744) - UI: Keep task log selection stable while dragging (#72743)
- UI: Restore counts on the Dag Run and Task Instance lists (#72739)
- UI: Fix the Dags list Last Run / Next Run going stale after runs complete (#72735)
- UI: Fix the first startup request being sent to an unset API base URL (#72733)
- UI: Fix task instance links leading to 404s for tasks outside the run's date range (#72732)
- UI: Fix the Human-in-the-loop form crashing on null values (#72731)
- UI: Fix copying task logs dropping rows that scrolled out of view (#72729)
- UI: Label Dag active runs accurately (#72722)
- Bound single-row
XComexistence lookups withLIMIT 1to avoid full scans (#72702) - UI: Fix Firefox multi-line drag selection in the task log view (#72700)
- Fix Dag scheduling stall after switching to a coarser cron (#72679)
- Fix memray profiling capturing interpreter startup instead of the dag-processor job (#72661)
- Prevent Dag-existence disclosure on the partitioned dag runs listing (#72660)
- Fix mark-failed
KeyErrorfor removed-task task instances (#72620) - UI: Fix
hierarchical_alphabeticalsort order breaking the graph and grid (#72618) - Clarify
@task-decorated callable errors when extra positional arguments are passed (#72616) - Load the correct Dag version when a task starts from a trigger (#72614)
- Fix
airflow db migratefailing under the PyMySQL driver when a schema migration drops unique constraints (#72613) - Stop
airflow providers get --fullmutating cached provider metadata (#72601) - Fix
airflow connections testreturning a success exit code on failure (#72583) - Stop
airflow standaloneleaking components when one fails to start (#72568) - Fix
DAG.cli()crashing ondags pauseanddags unpause(#72565) - Prevent Dag CLI subcommands from being silently dropped (#72365)
- Respect the
limitsearch param in the task overview duration chart (#72357) - UI: Show duration chart tooltips in the selected timezone (#72339)
- Export
AIRFLOW_TEST_MODEfromairflow tasks testwithout--env-vars(#72320) - Authenticate only once per task process to external secrets backends (#72237)
- Remove the unreachable 404 response from the create Variable API endpoint (#72190)
- Speed up bulk updates of Variables and Pools by fixing an N+1 query (#72160)
- UI: Fix a React plugin rendering a previously loaded plugin's component (#72136)
- Fix Variable write-conflict checks comparing against the wrong team (#72125)
- UI: Surface connection test errors instead of failing silently (#71963)
- Fix the runtime-varying-value checker skipping tasks defined after a nested
withblock (#71956) - Speed up marking a Dag run failed when it has many mapped task instances (#71955)
- UI: Include the JSON parse-error message in the Variable form warning (#71953)
- UI: Allow file downloads from plugin external-view iframes (#71952)
- UI: Make the grid run bar tooltip time zone aware (#71951)
- Reduce memory used when deleting queued asset events (#71937)
- UI: Activate assets materialized from an AssetAlias so they appear in the Assets tab (#71935)
- Fix
Variable.setrewriting theteam_nameof existing variables (#71904) - Reduce memory used when deleting a Dag with a large history (#71889)
- UI: Show an empty object for object params with no value (#71876)
- Fix Dag callbacks silently dropped when the version inflation check blocks parsing (#71865)
- Return HTTP 404 from task state store endpoints for unknown task instances (#71860)
- Fix deadline never firing after a non-deadline Dag edit (#71859)
- Honor the API server Dag cache TTL when no size limit is set (#71845)
- Require Dag edit permission to delete asset queued events (#71828)
- Bound the scheduler's deserialized Dag cache to prevent unbounded memory growth (#71821)
- Stop variables export/import from silently corrupting values (#71791)
- UI: Fix datetime pickers unusable on Firefox and Safari (#71788)
- Scope
/assets/eventsto the Dags the caller may read (#71785) - Serve logs from the scheduler if any executor is LocalExecutor (#71781)
- Fix cleared tasks getting stuck when a Dag run has no version (#71773)
- Stop the dag processor warning on every file path normalized for stats (#71764)
...
Apache Airflow 3.3.1
📦 PyPI: https://pypi.org/project/apache-airflow/3.3.1/
📚 Docs: https://airflow.apache.org/docs/apache-airflow/3.3.1/
🛠 Release Notes: https://airflow.apache.org/docs/apache-airflow/3.3.1/release_notes.html
🐳 Docker Image: "docker pull apache/airflow:3.3.1"
🚏 Constraints: https://github.com/apache/airflow/tree/constraints-3.3.1
Significant Changes
Pandas 3 changes how DataFrame XComs are stored and read back (#71169)
pandas 3 exposes its public classes from the pandas namespace, so a DataFrame is qualified as
pandas.DataFrame instead of pandas.core.frame.DataFrame. XComs record that name alongside the
serialized value, so the name written into the metadata database depends on the pandas version of the
component that pushed the value. Airflow registers both names, and a DataFrame written by either
pandas version can be read by either -- no configuration change is needed, and existing XComs stay
readable.
What you should do:
-
Roll this Airflow version out to every component before pandas 3 reaches any of them -- workers
in particular. A component that predates this change cannot read a DataFrame XCom written under
pandas 3, and fails the pull with:.. code-block:: text
ImportError: pandas.DataFrame was not found in allow list for deserialization imports. To allow it, add it to allowed_deserialization_classes in the configurationThe message points at configuration, but the allow list is not the cause and changing it does not
help. The rows are not corrupt: they become readable again as soon as the reader is upgraded. -
Treat a downgrade as a one-way door for those XComs. Rolling back to an Airflow version without
this change strands any DataFrame XCom written while on pandas 3, with the same error, until you
roll forward again. -
Review Dags that inspect the
dtypesof a pulled DataFrame. The pandas version of the reader
determines what a pulled DataFrame looks like, not the version that wrote it. Under pandas 3, a
column of strings comes back asstrrather thanobject, and its missing values
come back asnanrather thanNone. Values are unchanged, but downstream code that branches
ondtype == "object", checks cells withis None, or compares against a reference frame with
DataFrame.equals()can behave differently after the upgrade.
Fix 2.x to 3.0+ upgrade failure when a custom Dag bundle is configured (#70994)
The 0082_3_1_0_make_bundle_name_not_nullable migration assigned every legacy row
bundle_name='dags-folder', so triggering a DagRun raised Requested bundle 'dags-folder' is not configured. on any deployment that uses a bundle other than the default dags-folder.
DagFileProcessorManager now runs a one-shot, best-effort backfill at startup that routes each
affected Dag to the correct bundle based on its file path; unmatched Dags self-heal on the next
successful parse (or run airflow dags reserialize to force it immediately).
Team scoped values of options registered as sensitive are now hidden (#71099)
Configuration options are registered as sensitive under their base section, so until now only the
base spelling of an option was masked. A team scoped override -- set in a [<team>=<section>]
config file section, or through an AIRFLOW__<TEAM>___<SECTION>__<KEY> environment variable --
was not recognized as the same option and was returned in full.
Sensitivity is now decided after resolving the team scoped spelling back to the base option, so a
team scoped value is masked exactly as the base value already was.
Behaviour changes:
AirflowConfigParser.as_dict(display_sensitive=False),GET /config,
GET /config/section/{section}/option/{option}andairflow config listnow return
< hidden >for a team scoped value of an option registered as sensitive. Deployments that
read a team's real value through any of these will now receive the mask; use
display_sensitive=Truewhere a real value is required and appropriate.- Team scoped
_cmdand_secretentries are replaced with< hidden >in place, rather
than being resolved into their value and removed as they are in a base section. Resolving them
is not supported for a team, so the command string or secret path is no longer shown either. - Non team configuration is unaffected, and
display_sensitive=Truecontinues to return real
values.
Bug Fixes
- UI: Fix a 500 error when combining the last-run and any-run Dag state filters on the Dags list (#71371)
- UI: Fix task log text selection being cleared while scrolling (#71200)
- UI: Fix a translation key showing as raw text in the Clear Task dialog (#71240)
- Fail deferred task instances whose saved state can't be resumed, instead of leaving them stuck (#71183)
- Fix task callbacks being skipped when
TriggerDagRunOperatorgets a 404 (#71083) - Fix task state store rejecting keys that contain slashes (#70967)
- Fix the
deadline_referencedecorator's no-parentheses form (#70966) - Fix Dag run duration stats crash on PostgreSQL 14+ (#70964)
- Deactivate legacy Dags with a NULL
bundle_nameduring upgrade from 2.x to 3.x (#70662) - Fix deadline alerts using an outdated Dag definition (#70965)
- Fix deadline alert crashes on dynamic or malformed intervals (#70625)
- Fix deadline alerts that have no fixed interval (#70659)
- Fix backfill permission checks running against the wrong backfill for some ID formats (#71090)
- Fix database lock contention and statement timeouts caused by slow asset listeners on large fan-outs (#71065)
- Fix errors loading a Dag callback whose module isn't importable on the current component (#71042)
- Reject reserved XCom serialization keys submitted as JSON string literals (#69462)
- API: Return a clear error instead of a 500 for an invalid trigger-Dag-run request (#70775)
- API: Return 503 when SQLite locks during backfill creation (#69659)
- API: Return 422 for an empty backfill window and stop leaving orphan rows (#69367)
- API: Return 410 instead of 500 when setting rendered fields for a stale task instance (#69529)
- Reject invalid partition keys in the create asset events API (#69581)
- Reject attaching partition keys to asset alias events (#69515)
- Reject mismatched rollup mapper and window pairings at Dag parse time (#69516)
- CLI: Reject inverted date windows in
airflow partitions clear(#69547) - Fix asset materialization dropping the partition date on partitioned Dag runs (#69339)
- UI: Fix partition progress returning errors or over-reporting for keys with slashes and duplicate rows (#69844)
- Honor catchup for historical asset events in asset-triggered Dags (#69224)
- Fix drifting data intervals for monthly/yearly schedules with catchup disabled (#69189)
- Fix asset watcher triggers failing to decode their arguments (#70750)
- Prevent Triggerer crashes by speeding up cleanup of unused triggers (#70668)
- Fix Triggerer CrashLoopBackOff when
json_logsis enabled (#70669) - Detect and surface task-worker communication deadlocks instead of hanging (#70744)
- Fix TaskInstance duration calculation with SQLite (#70734)
- Fix incorrect end date, duration, and map index in task try history for retried tasks (#69458)
- Stop skipping
none_failed_min_one_successtasks in mapped task groups (#70318) - Fix the scheduler firing
on_failure_callbackfor heartbeat-timed-out retries (#69824) - Respect retries for deferrable tasks that fail via a trigger-emitted
TaskFailedEvent, instead of always failing terminally (#71163) - Prevent scheduler crash when process/thread are missing from the log format (#69787)
- Fix
TaskInstancemark-success downstream default (#70143) - Fix crash when tailing logs of a running task instance (#69521)
- API: Return a consistent error response instead of a 500 when a database error occurs (#70236)
- Fix Dag reparse authorization checking the wrong Dag (#70115)
- Don't deactivate Dag bundles owned by other Dag processors (#70017)
- Fix Dag bundle refresh using stale state (#70374)
- Skip stored credentials when a connection test overrides host or port (#70010)
- Fix cursor pagination dropping rows when sorting by a nullable column (#70739)
- API: Filter stale Dag tags from the public API (#70746)
- Fix Dag details active-runs count to exclude queued runs (#70511)
- Fix environment-variable config overrides being ignored for some provider config sections (#70732)
- CLI: Fix config
update --option/--ignore-optionnever matching options (#70757) - CLI: Fix
TypeErrorinairflow db shellwhen the database name is missing (#70752) - CLI: Send Airflow CLI logs to stderr for
-ocommands so structured output stays machine-readable (#70747) - Reduce Dag processor log noise from per-Dag run lookups (#69514)
- Suppress noisy Alembic plugin setup logs (#70116)
- Silence internal HTTP 422 deprecation warnings in logs (#70745)
- Only resolve a team-namespaced environment secret for its own team (#70882)
- Fix a team-scoped secret lookup that could return another team's secret for a crafted key (#71041)
- Mask sensitive
Variablevalues stored as JSON lists (#71069) - Fix secrets recorded unmasked in the audit log for bulk
Variable/Connectionupdates (#71043) - Fix sensitive values nested inside lists, tuples, or sets not being masked in logs (#70189)
- UI: Fix secrets not masked in the Rendered Templates view with
KubernetesPodOperator(#70756) - Fix an open-redirect by rejecting malformed URLs in redirect validation (#70515)
- Fix npm vulnerabilities in the simple auth manager (#70753)
- Bump
structlog>=26.1.0andcroniter>=6.2.2to fix memory leaks (#70749) - Fix task instance notes not being visible to state-change listeners (#70252)
- Call listeners for ...
Apache Airflow Java SDK 1.0.0-beta1
First release of the Apache Airflow Java SDK (beta).
Apache Airflow 3.3.0
📦 PyPI: https://pypi.org/project/apache-airflow/3.3.0/
📚 Docs: https://airflow.apache.org/docs/apache-airflow/3.3.0/
🛠 Release Notes: https://airflow.apache.org/docs/apache-airflow/3.3.0/release_notes.html
🐳 Docker Image: "docker pull apache/airflow:3.3.0"
🚏 Constraints: https://github.com/apache/airflow/tree/constraints-3.3.0
Significant Changes
Asset Partitioning (#64571, #65447, #66030, #66848, #67184, #67475, #67716, #68978)
Building on the asset partitioning introduced in 3.2.0, Airflow 3.3.0 substantially expands how a
single upstream asset event fans out to partitioned downstream Dag runs. New partition mappers —
RollupMapper (many-to-one), FanOutMapper (one-to-many), and FixedKeyMapper +
SegmentWindow (categorical rollup) — compose with time windows (day/week/month/quarter/year) and a
wait_policy (WaitForAll or MinimumCount(n)) to control when partitioned runs fire. Windows
can fan out forward or backward in time, and total fan-out per upstream event is bounded by the new
[scheduler] partition_mapper_max_downstream_keys config (configurable per mapper). Airflow 3.3.0
also adds the PartitionedAtRuntime timetable, which lets a Dag declare that its partition key(s)
are assigned when the run starts rather than mapped from an upstream event.
For detailed usage instructions, see :doc:/authoring-and-scheduling/assets.
Task and Asset State Store (#65759, #66073, #66160, #66463, #66586, #66859, #67041, #67292, #67319)
Airflow 3.3.0 introduces a first-class state store for tasks and assets (AIP-103). Tasks can persist
arbitrary key-value state that survives across retries and runs via a new task_state_store accessor, and
assets can carry their own state via asset_state_store — both available from the Task SDK. State is kept
in the metadata database by default, or in a custom worker-side backend ([workers] state_store_backend), supports per-key retention with periodic garbage collection and an optional
clear_on_success, and is fully manageable through the Core API and Execution API.
For detailed usage instructions, see :doc:/core-concepts/task-and-asset-state-store.
Pluggable Retry Policies (#65474)
Task retry behaviour is now pluggable (AIP-105). In addition to a fixed retries count, you can
attach a custom retry policy that decides whether and when a task is retried, enabling strategies such
as retrying only on specific exceptions or backing off based on custom logic.
For detailed usage instructions, see :ref:concepts:retry-policies.
Language Task SDK (Java and Go) (#65958, #67161, #67635, #67699)
Airflow 3.3.0 adds a Coordinator layer (AIP-108) that lets individual task implementations be written
in non-Python languages while the Dag and its scheduling stay in Python. A task is declared in the Dag
with @task.stub(queue=...); the worker routes it to a configured coordinator
(JavaCoordinator for JVM languages, ExecutableCoordinator for self-contained native binaries
such as Go) that runs the task in a language runtime and proxies Variables, Connections, and XComs back
through the Execution API.
.. warning::
The Coordinator layer and the Java/Go SDKs are experimental in 3.3.0 and may change in future
versions based on user feedback.
For detailed usage instructions, see :doc:/authoring-and-scheduling/language-sdks/index.
Dag bundle version on clear, rerun, and backfill (#63884)
The new rerun_with_latest_version setting controls whether a cleared, rerun, or backfilled Dag run
uses the latest bundle version or the original version from the initial run. The default is resolved
by precedence: an explicit request parameter/CLI flag, then the Dag-level rerun_with_latest_version,
then [core] rerun_with_latest_version, and finally False for clear/rerun and True for
backfills (preserving historical behaviour). Airflow 2.x always reran with the latest code; 3.x
introduced bundle versioning defaulting to the original version, and this setting gives users control.
See :doc:/administration-and-deployment/dag-bundles for full details.
Provider example Dags as dedicated bundles (#66161)
Example Dags shipped by provider distributions are now discovered via ProvidersManager and
registered as their own Dag bundles — one per provider, named
apache-airflow-providers-<distribution>-example-dags (or <distribution>-example-dags for
third-party providers). The [core] load_examples option still gates whether they are registered.
REST API clients that filtered bundle_name by "dags-folder" for provider-shipped example Dags
must update to the new per-provider bundle names; Dag identifiers are unchanged.
Remote logging resolution decoupled from airflow.logging_config (#67056)
Remote task log handler resolution is now owned by the shared airflow_shared.logging.factory
module and applies a single, well-defined precedence:
- a user-defined
[logging] logging_config_classexportingREMOTE_TASK_LOG/
DEFAULT_REMOTE_CONN_ID(existing custom configs keep working); ProvidersManagerscheme dispatch — the scheme of[logging] remote_base_log_folderselects a
providerRemoteLogIOclass, instantiated via a no-argumentfrom_config()classmethod;- a transitional legacy fallback reading
airflow_local_settings.py(to be removed in Airflow 4.0).
airflow.logging_config.load_logging_config is deprecated (it now emits DeprecationWarning and
delegates to new private helpers), and configure_logging no longer eagerly resolves the remote
handler — resolution is lazy on first use. Providers that registered a remote-logging: block but do
not implement from_config are skipped with a warning and fall through to the legacy path.
Migration: replace direct calls to airflow.logging_config.load_logging_config() with the new
helpers, and have provider remote-log handler classes implement a no-argument from_config
classmethod that reads airflow.providers.common.compat.sdk.conf.
OpenTelemetry timer metrics now use Histogram (#64207)
OpenTelemetry timer and timing metrics are now recorded as Histograms instead of Gauges, preserving
count, sum, and bucket distribution across recordings.
Dag-processing "seconds ago" metric is now tagged (#62487)
dag_processing.last_run.seconds_ago.{dag_file} is now a legacy metric. The new
dag_processing.last_run.seconds_ago is emitted with file_path, bundle_name and
file_name tags (file_path + bundle_name uniquely identify the Dag file). The legacy metric
is still emitted by default and can be disabled via [metrics] legacy_names_on.
New Deadlines page under Browse (#67586)
A new Deadlines page is available under the Browse menu, accessible to any role that already has
can_read and menu_access on Dag Runs.
New Features
- Add partition clear support to the REST API matching the CLI, with a
clearPartitionsendpoint andpartition_key/partition_datewindow selectors onclearDagRuns(#68702) - Add
[core] mp_start_methodand[core] mp_forkserver_preloadconfiguration options (which can be overridden per[scheduler]/[triggerer]/[dag_processor]) to control themultiprocessingstart method (#68875) - Add a
durabletoggle toResumableJobMixinto opt out of resumable execution (#68623) - Add a
@resultdecorator to mark a TaskFlow task as the Dag's result task (#64563) - Add
[triggerer] shared_stream_cohort_grace_periodto reduce missed events on triggerer restart (#68888) - Propagate
partition_datefrom producer Dag runs to consumers of partitioned assets (#67285) - Make the task and asset state store accessible from triggers via
AssetStateStoreAccessors(#67839) - Add OpenTelemetry head sampling support (#68591)
- Add async XCom
accessorsfor async tasks (#68299) - Add an async
aget_hookmethod toBaseHookfor async tasks (#68506) - Allow custom partition
Windowsubclasses via a plugin registry (#68717) - Support an
extrafield for the Coordinator (#68694) - Apply
rerun_with_latest_versiontoTriggerDagRunOperatorreruns (#67273) - Scope the XCom Execution API to teams in multi-team mode (#68850)
- Enforce pool team ownership in the scheduling loop (#68649)
- UI: Add team name to the asset graph view (#68457)
- Populate
partition_datefor partitioned Dag runs whose composite asset key has a single time-based dimension (#68442) - UI: Add a column to the asset store table linking to the task instance that wrote it (#68395)
- UI: Add a custom expiration datetime picker for the task store modal (#68394)
- UI: Add additional task instance attributes to the task instance details section (#68378)
- UI: Add a Details tab to the mapped task instance view (#68340)
- UI: Add bulk marking of Dag runs as success or failed from multi-select (#68278)
- Add
--team-namesupport to the pool CLI commands (#68110) - UI: Add a full-screen toggle to the code viewer (#68044)
- Add API endpoint support for consumer team asset filtering (#68034)
- UI: Add bulk clear selection for task instances (#68029)
- Add
awaiting_inputtask state for Human-in-the-Loop, running off the triggerer (#68028) - Add bulk API to mark Dag runs as success or failed (#67948)
- Record writer info for every asset store write for better cross-linkage (#67902)
- Register XCom
output_typeclasses from a worker-side Dag walk (#67875) - Add
FixedKeyMapperandSegmentWindowfor categorical asset-partition rollup (#67716) - Add a bulk
POST /dags/{dag_id}/clearDagRunsAPI endpoint (#67709) - Return Pydantic model instances through XCom for structured output (#67644)
- Add the ability to a...
Apache Airflow Helm Chart 1.22.0
Significant Changes
Minimum Helm version was updated to 3.19.0 (#66970)
Default Airflow image is updated to 3.2.2 (#67681)
The default Airflow image that is used with the Chart is now 3.2.2, previously it was 3.2.1.
Added support for configuring enableServiceLinks (#67447)
The default will become false in Chart 2.0. If you rely on these environment variables,
explicitly set enableServiceLinks: true, or migrate your code to use DNS-based service lookups.
New Features
- Add optional OTel service to the Airflow Helm Chart (#64902)
- Add
serviceAccountTokenVolumeto cleanup cron (#67446) - Add
requirePersistenceoption to workerlogGroomerSidecar(#65884)
Improvements
- Add checksum for api-server config in API server deployment (#66468)
Bug Fixes
- Fix Helm chart executor label to support executor aliases (#67762)
- Fix triggerer KEDA database connection rendering (#67538)
- Fix Celery worker liveness probe hostname lookup (#67471)
- Fix Go template error comparing slice to nil using
eq(#64032) - Fix Kubernetes worker service account values (#66598)
- Add binding for
workers.kubernetesand condition workers ServiceAccount (#66730) - Fix launcher RBAC for executor class paths (#66208)
- Fix task log access with NetworkPolicies for Airflow 2 and 3 (#65754)
- Add missing
tplrendering for ServiceAccount annotations (#66095) - Fix go-template
ifstatements for log groomer retention values (#66012) - Fix database cleanup lifecycle hooks (#65881)
- Fix cleanup pod lifecycle hooks not being applied (#65764)
- Fix deprecation warning (#66238)
Doc only changes
- Expand Helm Chart upgrade tasks in the Airflow 3 migration guide (#66118)
Misc
Apache Airflow Ctl (airflowctl) 0.1.5
📦 PyPI: https://pypi.org/project/apache-airflow-ctl/0.1.5
📚 Docs: https://airflow.apache.org/docs/apache-airflow-ctl/0.1.5
🛠️ Release Notes: https://airflow.apache.org/docs/apache-airflow-ctl/0.1.5/release_notes.html
Significant Changes
- Add dags next execution command (#66172, #66188)
- Add bulk delete Dag Runs (#67095)
- Add
rerun_with_latest_versionconfig hierarchy for clear/rerun behavior (#63884) - Implement patching of task group instances in API (#62812)
- Allow remote version check without authentication (#65099)
- Add cursor-based pagination for
get_dag_runsendpoint (#65604) - Enable queueing new tasks (#63484)
- Add cursor-based pagination for
get_task_instancesendpoint (#64845) - Add
is_backfillableproperty to DAG API responses (#64644) - Expose required primitive parameters of auto-generated commands as positional arguments instead of
--flagoptions. Optional parameters keep the--flagform. Follows the dev-list lazy consensus on airflowctl parameter style (see https://lists.apache.org/thread/m1qvcvow3l17ytv40vhslh40wn3rntrm) (#66768)
Bug Fixes
- Fix connections import schema handling (#67063)
- Fix broken download URLs and variable names in docs (#67046)
- Fix missing
pyyamlruntime dependency (#65489) - Fix
dagrun listcrash when--stateis omitted (#65608) - Fix backfill params not overriding existing DAG run conf (#64939)
- Fix Ruff issues in client-py (#64868)
Improvements
- AIP-103: Add Core API endpoints for task state and asset state (#67041)
- Add comment to avoid manual edits to
RELEASE_NOTES.rstin airflowctl PRs (#67128) - Align Dag capitalization from "DAG" to "Dag" for airflowctl (#66112)
- Send backfill create and dry-run payloads as JSON (#65158)
- Use existing
safe_loadfunction in airflowctl utils to load help texts (#65841) - Cap airflowctl
httpxdependency below 1.0 (#65607) - Remove unused
airflow-ctl/newsfragmentsdirectory (#65507) - Fix incorrect fallback logic (#64586)
- Run non-provider mypy checks as regular pre-commit static checks instead of separate CI jobs (#64780)
- Support clearing, marking success/failure, and deleting multiple task instances (#64141)