Skip to content

Question: Delaying a task scheduled with cron #580

Description

@paxw-panevo

We have a custom periodic task (a subclass of django-celery-beat's PeriodicTask model) that's scheduled using CronSchedule. In our custom periodic task, we want to allow an optional delay to when the task is scheduled.

So if the cron schedule is every 20 minutes, with a delay of 30minutes then it should be scheduled to run

Without the delay: 00:00, 00:20, 00:40
With the delay: 00:30, 00:50, 01:10

How can I do this in django-celery-beat?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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