Skip to content

Conversation

spoksss
Copy link

@spoksss spoksss commented Dec 7, 2018

Fix: #393

@spoksss
Copy link
Author

spoksss commented Dec 7, 2018

The same fix should work with django-celery==3.2

@spoksss
Copy link
Author

spoksss commented Dec 7, 2018

Example how I use it, maybe will be helpful.

from celery import Task

class MyTask(Task):

    expires = 60 * 2
    ...

@auvipy auvipy requested a review from Copilot May 13, 2025 09:10
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses issue #393 by updating the DatabaseScheduler to correctly handle the "expires" option.

  • Introduces a check for an "expires" value in the options.
  • Deletes the model's DateTimeField attribute "expires" when necessary and reassigns it as a simple int.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DatabaseScheduler ignores 'expires' option
2 participants