This commit is contained in:
soju6jan
2022-10-02 23:11:14 +09:00
parent a3c4355791
commit aae68a6937
3 changed files with 28 additions and 3 deletions

View File

@@ -104,9 +104,11 @@ class Framework:
timezone='Asia/Seoul'
)
from celery import bootsteps
from celery.bin import Option
#from celery.bin.base import CeleryOption
from click import Option
#from celery.bin import Option # 4.3.0
celery.user_options['worker'].add(
Option('--config_filepath', action='store', dest='config_filepath', default='.', help='')
Option(('--config_filepath',), help='')
)
class CustomArgs(bootsteps.Step):
def __init__(self, worker, config_filepath=None, **options):