Skip to content

Crontab schedule delta incorrect when self.now() uses different timezone to last_run_at #4169

Closed

Description

@DDevine

When a different timezone is given from self.now() - which could be provided to the schedule via the nowfun() argument to what last_run_at has, the delta is offset by the difference between the timezones. This means that the task never executes because it is perpetually offset by a number of hours.

You may come across this issue if you are using django_celery_beat which provides a nowfun() with the Django timezone.

Activity

  1. thedrow commented on Dec 13, 2017

    @thedrow
    Contributor

    Closing as #4173 fixed this issue.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions