geraj1010 commented on code in PR #48466:
URL: https://github.com/apache/airflow/pull/48466#discussion_r2106378314


##########
providers/dbt/cloud/src/airflow/providers/dbt/cloud/operators/dbt.py:
##########
@@ -254,9 +265,21 @@ def execute_complete(self, context: Context, event: 
dict[str, Any]) -> int:
         """Execute when the trigger fires - returns immediately."""
         self.run_id = event["run_id"]
         if event["status"] == "cancelled":
-            raise DbtCloudJobRunException(f"Job run {self.run_id} has been 
cancelled.")
+
+            raise DbtCloudJobRunDetailsException(
+                self.account_id,
+                self.run_id,
+                message=f"Job run {self.run_id} has failed or has been 
cancelled.",

Review Comment:
   Well, that was the original message. So, I thought it made sense to keep it 
as is and add the additional job run details to it. However, this is under the 
`cancelled` block, so I suppose it makes sense to just say "cancelled" :)



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