pankajastro commented on code in PR #36601:
URL: https://github.com/apache/airflow/pull/36601#discussion_r1444781397
##########
airflow/providers/databricks/hooks/databricks.py:
##########
@@ -519,13 +519,27 @@ def delete_run(self, run_id: int) -> None:
json = {"run_id": run_id}
self._do_api_call(DELETE_RUN_ENDPOINT, json)
- def repair_run(self, json: dict) -> None:
+ def repair_run(self, json: dict) -> int:
"""
Re-run one or more tasks.
:param json: repair a job run.
"""
- self._do_api_call(REPAIR_RUN_ENDPOINT, json)
+ response = self._do_api_call(REPAIR_RUN_ENDPOINT, json)
+ return response["repair_id"]
+
+ def get_latest_repair_id(self, run_id: int) -> Optional[int]:
Review Comment:
```suggestion
def get_latest_repair_id(self, run_id: int) -> int | None:
```
--
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]