Checklist
Related Issues and Possible Duplicates
Related Issues
Possible Duplicates
Description
https://docs.celeryq.dev/en/latest/userguide/signals.html#user-preload-options refers to celery.bin.base.Option which doesn't exist. There's CeleryOption, but that has a different API, the param_decls should be a sequence of str, not a plain str.
Suggestions
from celery import Celery
from celery import signals
from click import option
app = Celery()
app.user_options['preload'].add(option(
'--monitoring', action='store_true',
help='Enable our external monitoring utility, blahblah',
))
@signals.user_preload_options.connect
def handle_preload_options(options, **kwargs):
if options['monitoring']:
enable_monitoring()
Checklist
for similar or identical bug reports.
for existing proposed fixes.
to find out if the bug was already fixed in the main branch.
(If there are none, check this box anyway).
Related Issues and Possible Duplicates
Related Issues
Possible Duplicates
Description
https://docs.celeryq.dev/en/latest/userguide/signals.html#user-preload-options refers to
celery.bin.base.Optionwhich doesn't exist. There'sCeleryOption, but that has a different API, theparam_declsshould be a sequence of str, not a plain str.Suggestions