-
Notifications
You must be signed in to change notification settings - Fork 6k
Aligned JobQueue.run_daily days parameter with cron weekdays notation. #3046
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
Conversation
days parameter with cron weekdays notation (#3038)
Bibo-Joshi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the nice PR! It looks good overall 👍 The comments I left below are mostly just small stuff :)
Bibo-Joshi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just one nitpick :) please also merge the master branch into yours - we changed the pre-commit settings a bit so we should make sure that your branch passes the updated version as well
| warn( | ||
| "Prior to v20.0 the `days` parameter was not aligned to that of cron's weekday scheme." | ||
| "We recommend double checking if the passed value is correct.", | ||
| stacklevel=2, | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about a comment here, reminding us that we remove this in the next major version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this enough?
# TODO: After v20.0, we should remove the this warning.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be enough IMO, yes :)
Poolitzer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM
|
Thank you for the contribution! :) |
Changes included in the PR for issue #3038 - closes #3038:
JobQueue.run_dailythat thedaysparameter range 0-6 is now sunday-saturday.Checklist for PRs
.. versionadded:: version,.. versionchanged:: versionor.. deprecated:: versionto the docstrings for user facing changes (for methods/class descriptions, arguments and attributes)pre-commitchecks out