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

[FIX] Fixed databricks repair run deferrable #44213

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -952,13 +952,14 @@ def execute(self, context: Context):

def execute_complete(self, context: Context, event: dict[str, Any] | None = None) -> None:
if event:
_handle_deferrable_databricks_operator_completion(event, self.log)
run_state = RunState.from_json(event["run_state"])
should_repair = event["repair_run"] and (
event["repair_run"] = event["repair_run"] and (
not self.databricks_repair_reason_new_settings
or is_repair_reason_match_exist(self, run_state)
)
if should_repair:
_handle_deferrable_databricks_operator_completion(event, self.log)

if event["repair_run"]:
self.repair_run = False
self.run_id = event["run_id"]
job_id = self._hook.get_job_id(self.run_id)
Expand Down
Loading