Lee-W commented on code in PR #38868:
URL: https://github.com/apache/airflow/pull/38868#discussion_r1580638087


##########
airflow/providers/dbt/cloud/hooks/dbt.py:
##########
@@ -424,11 +427,14 @@ def trigger_job_run(
         }
         payload.update(additional_run_config)
 
-        return self._run_and_get_response(
-            method="POST",
-            endpoint=f"{account_id}/jobs/{job_id}/run/",
-            payload=json.dumps(payload),
-        )
+        if retry_from_failure:
+            return self.retry_failed_job_run(job_id, account_id)
+        else:
+            return self._run_and_get_response(
+                method="POST",
+                endpoint=f"{account_id}/jobs/{job_id}/run/",
+                payload=json.dumps(payload),
+            )

Review Comment:
   ```suggestion
           return self._run_and_get_response(
               method="POST",
               endpoint=f"{account_id}/jobs/{job_id}/run/",
               payload=json.dumps(payload),
           )
   ```



-- 
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]

Reply via email to