Skip to content

Unable to run purge with Celery release candidate 5.3.0rc1 #101

@dpdoughe

Description

@dpdoughe

Lot's of changes in Celery have been happening since the last release of pyramid-celery. Recently building against Celery==5.3.0rc1
and pyramid-celery v4.0.0 I run into the following problems with purge

Without --ini arg specified I get the error

celery -A pyramid_celery.celery_app purge
You must provide the paste --ini argument

and when running with --ini specified

celery -A pyramid_celery.celery_app purge --ini ini/staging.ini
Traceback (most recent call last):
  File "/usr/local/bin/celery", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/celery/__main__.py", line 15, in main
    sys.exit(_main())
  File "/usr/local/lib/python3.8/dist-packages/celery/bin/celery.py", line 235, in main
    return celery(auto_envvar_prefix="CELERY")
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/celery/bin/base.py", line 134, in caller
    return f(ctx, *args, **kwargs)
TypeError: purge() got an unexpected keyword argument 'ini'

It seems that pyramid-celery is requiring --ini but it is no longer supported or required by the upstream Celery method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions