uranusjr commented on a change in pull request #19723:
URL: https://github.com/apache/airflow/pull/19723#discussion_r755026201
##########
File path: airflow/providers/databricks/hooks/databricks.py
##########
@@ -407,6 +407,14 @@ def get_run_state(self, run_id: str) -> RunState:
"""
Retrieves run state of the run.
+ Please note that any Airflow tasks that call the ``get_run_state``
method will result in
+ failure unless you have enabled xcom pickling. This can be done using
the following
+ environment variable: ``AIRLFOW_CORE_ENABLE_XCOM_PICKLING=TRUE``
+
+ If you do not want to enable xcom pickling then use the
``get_run_state_str`` method to get
+ string describing state, or ``get_run_state_lifecycle``,
``get_run_state_result``, or
+ ``get_run_state_message`` to get individual components of the run
state.
Review comment:
```suggestion
If you do not want to enable xcom pickling, use the
``get_run_state_str`` method to get
a string describing state, or ``get_run_state_lifecycle``,
``get_run_state_result``, or
``get_run_state_message`` to get individual components of the run
state.
```
Grammar
--
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]