kaxil commented on a change in pull request #16461:
URL: https://github.com/apache/airflow/pull/16461#discussion_r652073606



##########
File path: airflow/cli/commands/dag_command.py
##########
@@ -78,6 +78,10 @@ def dag_backfill(args, dag=None):
         dag = dag.partial_subset(
             task_ids_or_regex=args.task_regex, include_upstream=not 
args.ignore_dependencies
         )
+        if not dag.task_dict:
+            raise AirflowException(
+                f"There is no any task that match '{args.task_regex}' regex. 
Nothing to run, exiting..."

Review comment:
       ```suggestion
                   f"There are no tasks that match '{args.task_regex}' regex. 
Nothing to run, exiting..."
   ```




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to