How to Return Task Value from Python Script (.py
) Using DatabricksRunNowOperator
#44230
Unanswered
big-c-note
asked this question in
Q&A
Replies: 1 comment
-
This looks promising, will try tomorrow: https://blog.devgenius.io/send-information-from-databricks-to-airflow-810a7d49ff81 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running a Databricks Workflow from airflow using the
DatabricksRunNowOperator
. I have setdo_xcom_push=True
. I have set the task to run a python file (.py
file, not a notebook) in a Databricks Repo. That python script containsdbutils.notebook.exit(json.dumps(result))
. My expectation would be that the value would appear in xcoms logs in my local Airflow, however I do not see it.Relevant set up:
xcom does not show any expected key value output. I realize this may be a Databricks question, but I figured I'd ask the community here in case someone knows.
Beta Was this translation helpful? Give feedback.
All reactions