ginone commented on code in PR #45634: URL: https://github.com/apache/airflow/pull/45634#discussion_r1930165305
########## providers/src/airflow/providers/dbt/cloud/operators/dbt.py: ########## @@ -135,6 +148,18 @@ def execute(self, context: Context): f"Triggered via Apache Airflow by task {self.task_id!r} in the {self.dag.dag_id} DAG." ) + if self.job_id is None: + if not all([self.project_name, self.environment_name, self.job_name]): + raise AirflowException( Review Comment: I'll use built-in `ValueError` here since it is suitable for this use case. I believe this is in line with the discussion in slack (https://apache-airflow.slack.com/archives/C06K9Q5G2UA/p1737614696625489) -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org