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/08/09 06:15:39 UTC

[GitHub] [airflow] uranusjr commented on a change in pull request #17485: Pass explicit state, not a success boolean

uranusjr commented on a change in pull request #17485:
URL: https://github.com/apache/airflow/pull/17485#discussion_r684932622



##########
File path: airflow/cli/cli_parser.py
##########
@@ -219,7 +221,17 @@ def _check(value):
 
 # backfill
 ARG_MARK_SUCCESS = Arg(
-    ("-m", "--mark-success"), help="Mark jobs as succeeded without running them", action="store_true"
+    ("-m", "--mark-success"),
+    action="store_const",
+    const=TaskInstanceState.SUCCESS,
+    dest='mark_as',
+    help="Mark jobs as succeeded without running them " "(deprecated, use --mark-as=success instead)",

Review comment:
       Need to fix this (Black 🤦)




-- 
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-unsubscribe@airflow.apache.org

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