Skip to content
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

feat(schedule): replace later with cron #32718

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

RahulGautamSingh
Copy link
Collaborator

Changes

Replace all later scheduleing in docs & presets with their cron equivalent

Context

Closes: #32414

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

rarkins
rarkins previously approved these changes Nov 25, 2024
docs/usage/configuration-options.md Outdated Show resolved Hide resolved
docs/usage/key-concepts/scheduling.md Outdated Show resolved Hide resolved
docs/usage/noise-reduction.md Show resolved Hide resolved
docs/usage/noise-reduction.md Show resolved Hide resolved
lib/config/presets/internal/schedule.ts Show resolved Hide resolved
@viceice viceice changed the title refactor(schedule): replace later with cron feat(schedule): replace later with cron Nov 25, 2024
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
@RahulGautamSingh
Copy link
Collaborator Author

Ranges are inclusive.
For example, 8-11 for an 'hours' entry specifies execution at hours 8, 9, 10, and 11.

@@ -2464,7 +2464,7 @@ Here's an example config to limit the "noisy" `aws-sdk` package to weekly update
"packageRules": [
{
"matchPackageNames": ["aws-sdk"],
"schedule": ["after 9pm on sunday"]
"schedule": ["* 21-23 * * 7"]
Copy link
Member

Choose a reason for hiding this comment

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

@rarkins should be we add a human readable description?

so this is effective 21:00 - 23:59

const quarterly = ['* * * */3 *'];
const weekdays = ['* * * * 1-5'];
const weekends = ['* * * * 6,7'];
const yearly = ['* * 1 */12 *'];
Copy link
Member

Choose a reason for hiding this comment

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

we should add unit tests to ensure the textual representation matches our expectations.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I was thinking the same. On it

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.

Widen cron syntax support, update docs
3 participants