-
Notifications
You must be signed in to change notification settings - Fork 16.5k
Closed as not planned
Closed as not planned
Copy link
Description
airflow/providers/src/airflow/providers/standard/operators/python.py
Lines 533 to 546 in 16eaa5e
| if self.use_airflow_context: | |
| # TODO: replace with commented code when context serialization is implemented in AIP-72 | |
| raise AirflowException( | |
| "The `use_airflow_context=True` is not yet implemented. " | |
| "It will work in Airflow 3 after AIP-72 context " | |
| "serialization is ready." | |
| ) | |
| # context = get_current_context() | |
| # with create_session() as session: | |
| # dag_run, task_instance = context["dag_run"], context["task_instance"] | |
| # session.add_all([dag_run, task_instance]) | |
| # serializable_context: dict[Encoding, Any] = # Get serializable context here | |
| # with airflow_context_path.open("w+") as file: | |
| # json.dump(serializable_context, file) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind:featureFeature RequestsFeature Requests
Type
Projects
Status
Done