Skip to content

Periodic tasks from CELERY_BEAT_SCHEDULE ignore options #954

@Lucianod28

Description

@Lucianod28

In my Django settings, I have scheduled tasks with options like so:

CELERY_BEAT_SCHEDULE = {
    "send-reminders": {
        "task": "send_reminders",
        "schedule": timezone.timedelta(minutes=30),
        "options": {"MessageGroupId": "send_reminders"},
    },
}

Normally, this causes the scheduled message to be sent with a MessageGroupId, the same as if you send the task like so: send_reminders.apply_async(args=[], MessageGroupId="send_reminders"), but after installing django-celery-beat, the scheduled tasks don't include my options, so they send without the MessageGroupId. Is there a way to get it to include the configured options?

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