kaxil commented on pull request #10115:
URL: https://github.com/apache/airflow/pull/10115#issuecomment-667655105


   CI is failing:
   
   ```
   
   self = DefaultHelpParser(prog='airflow celery', usage=None, 
description='Start celery components. Works only when using 
Celer...xecutor/celery.html', formatter_class=<class 
'argparse.RawTextHelpFormatter'>, conflict_handler='error', add_help=True)
   action = _SubParsersAction(option_strings=[], dest='subcommand', 
nargs='A...', const=None, default=None, type=None, choices={'f...class=<class 
'argparse.RawTextHelpFormatter'>, conflict_handler='error', add_help=True)}, 
help=None, metavar='COMMAND')
   value = 'worker'
   
       def _check_value(self, action, value):
           """Override _check_value and check conditionally added command"""
           executor = conf.get('core', 'EXECUTOR')
           if value == 'celery' and executor != ExecutorLoader.CELERY_EXECUTOR:
               message = f'celery subcommand works only with CeleryExecutor, 
your current executor: {executor}'
               raise ArgumentError(action, message)
   >       check_value(action, value)
   
   airflow/cli/cli_parser.py:69: 
   ```


----------------------------------------------------------------
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:
[email protected]


Reply via email to