Skip to content

How to disable Celery beat tasks globally? #942

@andreangelucci

Description

@andreangelucci

Periodic tasks are designed to trigger Celery tasks at programmed intervals.
It's possible to define default periodic tasks through the app.conf.beat_schedule. With this configuration, the default Periodic Tasks will be automatically created and updated, which is very useful.
A side effect of this configuration is that all instances of the application will have periodic tasks running by default, unless they are manually disabled.

Is it possible to set up the scheduler to not run any tasks?
I'm looking for a configuration that I can overwrite in my local settings to toggle Beat on and off.

Disabling them globally could be useful when the project needs default periodic tasks, but contributors don't need them running in their development environments, as they are only useful in the higher-level environments of the app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions