Skip to content

django-celery not flushing interval_id on periodictask when changing schedule of task from timedelta to crontab #416

@luislizarraga

Description

@luislizarraga

Hi, I'm using Django 1.9.2 with Celery 3.1.20 and django-celery 3.1.17. When I had to change the schedule of a task from timedelta(seconds=5) to crontab(), the interval_id from the entry of the task on the table djcelery_periodictask wasn't set to NULL, so it was running every 5 seconds, as well as every minute.

The workaround was to stop Celery, clear all entries on djcelery_periodictask table and start Celery, so that it would populate all tasks with their respective interval and contrab ids.

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