Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Databricks: add more methods to represent run state information #19723

Merged
merged 6 commits into from
Nov 24, 2021

Conversation

alexott
Copy link
Contributor

@alexott alexott commented Nov 20, 2021

This PR adds a warning about need to use XCOM if get_run_state function is used, plus adds more methods to retrieve information about run state

closes: #19357

@alexott alexott force-pushed the databricks-issue-19357 branch 2 times, most recently from 60e0747 to d607df5 Compare November 20, 2021 15:47
Comment on lines +438 to +440
run_state_str = (
f"State: {state.life_cycle_state}. Result: {state.result_state}. {state.state_message}"
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about putting this in RunState’s __str__ and just call str(state) here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That’s primarily because I’m not sure if it may break something inside airflow. I’m not expert in it (yet)

@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Nov 23, 2021
@github-actions
Copy link

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers okay to merge It's ok to merge this PR as it does not require more tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DatabricksHook method get_run_state returns error
3 participants