Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions providers/microsoft/azure/docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,51 @@
Changelog
---------

14.0.0
......

Breaking changes
~~~~~~~~~~~~~~~~

.. warning::
The Azure Batch hook and operator have been migrated to ``azure-batch>=15.0.0``
(Azure SDK "track 2"). Users must update their code if they depend on Azure Batch
model classes or extend ``AzureBatchHook`` / ``AzureBatchOperator``. See the
`azure-batch CHANGELOG <https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/batch/azure-batch/CHANGELOG.md>`__
for the full list of upstream renames and removals.

* The ``azure-batch`` dependency floor has been raised to ``>=15.0.0``. The 15.x line
is a full rewrite that removes ``BatchServiceClient`` (replaced by
``BatchClient``), ``batch_auth.SharedKeyCredentials`` (replaced by
``azure.core.credentials.AzureNamedKeyCredential``), and many model classes have
been renamed.
* ``AzureBatchOperator`` constructor type hints updated to the new model names:
``JobManagerTask`` -> ``BatchJobManagerTask``,
``JobPreparationTask`` -> ``BatchJobPreparationTask``,
``JobReleaseTask`` -> ``BatchJobReleaseTask``,
``TaskContainerSettings`` -> ``BatchTaskContainerSettings``,
``StartTask`` -> ``BatchStartTask``. Update Dag code that constructs and passes
these models accordingly.
* The ``os_family`` and ``os_version`` parameters have been removed from
``AzureBatchHook.configure_pool`` and ``AzureBatchOperator``. Cloud Service pool
configuration is no longer supported by Azure Batch (azure-batch 15.x removed
``CloudServiceConfiguration``); passing either name as a keyword argument now
raises ``ValueError``. Use ``vm_publisher`` / ``vm_offer`` / ``vm_sku`` /
``vm_node_agent_sku_id`` instead.
* ``AzureBatchOperator.batch_max_retries`` is currently a no-op. The previous
implementation assigned an integer to ``BatchServiceClient.config.retry_policy``,
which expected a policy object; the new client manages retries via its own
pipeline. The parameter is retained to avoid signature breakage and may be wired
to the new client's retry kwargs in a future release.
* Pool / job / task deletion and job termination now go through the new
long-running operation surface (``begin_delete_pool``, ``begin_delete_job``,
``begin_terminate_job``). This is transparent to Dag authors using the operator
but affects subclasses that called ``connection.pool.delete`` / ``job.delete`` /
``job.terminate`` directly.
* ``AzureBatchHook`` no longer routes Azure Identity credentials through
``AzureIdentityCredentialAdapter``. The new ``BatchClient`` accepts
``azure-identity`` ``TokenCredential`` instances natively.

13.2.0
......

Expand Down
2 changes: 1 addition & 1 deletion providers/microsoft/azure/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ PIP package Version required
``apache-airflow`` ``>=2.11.0``
``apache-airflow-providers-common-compat`` ``>=1.13.0``
``adlfs`` ``>=2023.10.0``
``azure-batch`` ``<15.0.0,>=8.0.0``
``azure-batch`` ``>=15.0.0``
``azure-cosmos`` ``>=4.6.0``
``azure-mgmt-cosmosdb`` ``>=3.0.0``
``azure-datalake-store`` ``>=0.0.45``
Expand Down
4 changes: 1 addition & 3 deletions providers/microsoft/azure/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ dependencies = [
"apache-airflow>=2.11.0",
"apache-airflow-providers-common-compat>=1.13.0",
"adlfs>=2023.10.0",
# azure-batch 15.x is a full rewrite of the Azure SDK (track 2) that removes BatchServiceClient, batch_auth,
# and the other references in AzureBatchHook. Lifting the upper bound cap needs a full hook rewrite.
"azure-batch>=8.0.0,<15.0.0",
"azure-batch>=15.0.0",
"azure-cosmos>=4.6.0",
"azure-mgmt-cosmosdb>=3.0.0",
"azure-datalake-store>=0.0.45",
Expand Down
Loading
Loading