You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/06/15 14:22:29 UTC

[GitHub] [airflow] dimonchik-suvorov opened a new pull request #16461: [#16460]: Fixed typos in task regex param

dimonchik-suvorov opened a new pull request #16461:
URL: https://github.com/apache/airflow/pull/16461


   Backfill should not create a DagRun in case there is no any task that matches the regex.
   
   closes: #16460
   


-- 
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:
users@infra.apache.org



[GitHub] [airflow] github-actions[bot] commented on pull request #16461: [#16460]: Fixed typos in task regex param

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #16461:
URL: https://github.com/apache/airflow/pull/16461#issuecomment-861752943


   The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.


-- 
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:
users@infra.apache.org



[GitHub] [airflow] kaxil commented on a change in pull request #16461: [#16460]: Fixed typos in task regex param

Posted by GitBox <gi...@apache.org>.
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:
users@infra.apache.org