josh-fell opened a new pull request #16872:
URL: https://github.com/apache/airflow/pull/16872


   - Removed or refactored the `default_args` pattern where necessary as 
requested by @ashb (i.e. removed a separated `default_args` declaration for 
deference for declaration as part of the `DAG` object)
   - Updated example DAG files that access `TaskInstance` objects from context 
to use `get_current_context()` function
   
   An detailed summary of all changes made as part of this PR can be found 
below:
   | DAG File | Converted `xcom_pull()`? | Other Updates? | Comments |
   | ---------| ------------------------ | -------------- | -------- |
   | airflow/providers/asana/example_dags/example_asana.py | No | Yes | Removed 
unneeded `default_args` pattern. |
   | airflow/providers/dingding/example_dags/example_dingding.py | No | Yes | 
Refactored `default_args` pattern. |
   | airflow/providers/http/example_dags/example_http.py | No | Yes | 
Refactored `default_args` pattern. |
   | airflow/providers/jdbc/example_dags/example_jdbc_queries.py | No | Yes | 
Refactored `default_args` pattern. |
   | airflow/providers/mysql/example_dags/example_mysql.py | No | Yes | Removed 
`default_args` pattern. |
   | airflow/providers/neo4j/example_dags/example_neo4j.py | No | Yes | Removed 
`default_args` pattern. |
   | airflow/providers/papermill/example_dags/example_papermill.py | No | Yes | 
Removed `default_args` pattern. |
   | airflow/providers/plexus/example_dags/example_plexus.py | No | Yes | 
Refactored `default_args` pattern. |
   | airflow/providers/postgres/example_dags/example_postgres.py | No | Yes | 
Removed `default_args` pattern. |
   | airflow/providers/qubole/example_dags/example_qubole.py | No | Yes | 
Updated to use `get_current_context()`. |
   | airflow/providers/singularity/example_dags/example_singularity.py | No | 
Yes | Refactored `default_args` pattern. |
   | airflow/providers/snowflake/example_dags/example_snowflake.py | No | Yes | 
Removed `default_args` pattern. |
   | airflow/providers/sqlite/example_dags/example_sqlite.py | No | Yes | 
Removed `default_args` pattern. |
   | airflow/providers/tableau/example_dags/example_tableau_refresh_workbook.py 
| No | Yes | Refactored `default_args` pattern. |
   | airflow/providers/telegram/example_dags/example_telegram.py | No | Yes | 
Removed `default_args` pattern. |
   | airflow/providers/yandex/example_dags/example_yandexcloud_dataproc.py | No 
| Yes | Removed `default_args` pattern. |
   ---
   **^ Add meaningful description above**
   
   Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)**
 for more information.
   In case of fundamental code change, Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals))
 is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party 
License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in 
[UPDATING.md](https://github.com/apache/airflow/blob/main/UPDATING.md).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to