Skip to content

Commit

Permalink
Fix missing regex var allowed_deserialization_classes (#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro authored Mar 7, 2024
1 parent 02f7a89 commit 4b87153
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python-sdk/dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ x-airflow-common:
AIRFLOW__WEBSERVER__EXPOSE_CONFIG: "True"
AIRFLOW__SCHEDULER__DAG_DIR_LIST_INTERVAL: "5"
ASTRONOMER_ENVIRONMENT: local
AIRFLOW__CORE__ALLOWED_DESERIALIZATION_CLASSES: airflow\.* astro\.*
AIRFLOW__CORE__ALLOWED_DESERIALIZATION_CLASSES: "airflow.* astro.*"
AIRFLOW__LINEAGE__BACKEND: openlineage.lineage_backend.OpenLineageBackend
OPENLINEAGE_URL: http://host.docker.internal:5050/
OPENLINEAGE_NAMESPACE: "astro"
Expand Down
4 changes: 2 additions & 2 deletions python-sdk/docs/configurations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,14 @@ will take care of serializing and deserializing them if you have set the followi

.. code-block:: shell
AIRFLOW__CORE__ALLOWED_DESERIALIZATION_CLASSES = airflow\.* astro\.*
AIRFLOW__CORE__ALLOWED_DESERIALIZATION_CLASSES = airflow.* astro.*
or by updating ``airflow.cfg``

.. code-block:: ini
[core]
allowed_deserialization_classes = airflow\.* astro\.*
allowed_deserialization_classes = airflow.* astro.*
The dataframes (generated by ``dataframe``, ``transform`` and other functions/operators where you don't
pass ``output_table``) are stored in XCom table if you are not using a Custom XCom backend.
Expand Down
4 changes: 2 additions & 2 deletions python-sdk/docs/guides/xcom_backend.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ in airflow’s config file as shown below.
.. code-block:: ini
[core]
allowed_deserialization_classes = airflow\.* astro\.*
allowed_deserialization_classes = airflow.* astro.*
or we can also set env variables like

.. code-block:: ini
AIRFLOW__CORE__ALLOWED_DESERIALIZATION_CLASSES = airflow\.* astro\.*
AIRFLOW__CORE__ALLOWED_DESERIALIZATION_CLASSES = airflow.* astro.*
2 changes: 1 addition & 1 deletion python-sdk/example_dags/example_dataframe_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
ALLOWED_DESERIALIZATION_CLASSES = os.getenv("AIRFLOW__CORE__ALLOWED_DESERIALIZATION_CLASSES")
else:
ALLOWED_DESERIALIZATION_CLASSES = os.getenv(
"AIRFLOW__CORE__ALLOWED_DESERIALIZATION_CLASSES", default="airflow\\.* astro\\.*"
"AIRFLOW__CORE__ALLOWED_DESERIALIZATION_CLASSES", default="airflow.* astro.*"
)


Expand Down

0 comments on commit 4b87153

Please sign in to comment.