Skip to content

DatabaseScheduler ignores 'expires' option #558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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