Skip to content

CrontabSchedule day_of_week help text to say that sunday is 0, not 7 #925

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: main
Choose a base branch
from

Conversation

loristns
Copy link

@loristns loristns commented Jul 31, 2025

Hello,
This PR updates the CrontabSchedule day_of_week help text to says that sunday is 0, not 0 and 7.
Seems like this confused many users (including me 😅).

I took the easy path of just updating the doc to reflect the current behavior, but the alternative fix would be to actually support 7 as documented.

Fixes #892 #806

@auvipy auvipy requested a review from Copilot July 31, 2025 10:58
Copilot

This comment was marked as outdated.

@loristns loristns requested a review from Copilot July 31, 2025 11:52
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 corrects the help text documentation for the CrontabSchedule model's day_of_week field to accurately reflect that Sunday is only represented as 0, not both 0 and 7 as previously documented.

  • Updates help text to remove the misleading "or 7" reference for Sunday
  • Includes a Django migration to apply the help text change to the database schema

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
django_celery_beat/models.py Updates the day_of_week field help text to remove "or 7" for Sunday
django_celery_beat/migrations/0020_alter_crontabschedule_day_of_week.py Django migration to apply the help text change

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.

Reopened from #806: Celery task does not run when crontab day of week is set to 7
1 participant