josh-fell commented on code in PR #38868:
URL: https://github.com/apache/airflow/pull/38868#discussion_r1626562408
##########
airflow/providers/dbt/cloud/hooks/dbt.py:
##########
@@ -439,6 +443,24 @@ def trigger_job_run(
}
payload.update(additional_run_config)
+ if retry_from_failure:
+ latest_run = self.get_job_runs(
+ account_id=account_id,
+ payload={
+ "job_definition_id": job_id,
+ "order_by": "-created_at",
+ "limit": 1,
+ },
+ ).json()["data"]
+ if latest_run and latest_run[0]["status"] ==
DbtCloudJobRunStatus.ERROR.value:
Review Comment:
Should this check also include canceled job runs?
--
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]