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

Support for Multiple Cron Schedules #1565

Open
nathan-lamy opened this issue Jun 23, 2024 · 0 comments · May be fixed by #1923
Open

Support for Multiple Cron Schedules #1565

nathan-lamy opened this issue Jun 23, 2024 · 0 comments · May be fixed by #1923
Labels
🎉 feature New feature or request
Milestone

Comments

@nathan-lamy
Copy link

Is your feature request related to a problem? Please describe.
Currently, Speedtest Tracker allows configuring a single cron schedule for running speed tests. To provide more flexibility and better meet user needs, it would be beneficial to support multiple cron schedules. This feature would enable users to define different schedules for different times of the day, such as more frequent tests during peak hours and less frequent tests during off-peak hours.

Describe the solution you'd like
Allow users to define multiple cron expressions using a comma-separated list in the environment variable SPEEDTEST_SCHEDULE.

Additional context
Use Case Example:

  • Frequent Testing During Peak Hours:
    Every 15 minutes from 6 AM to 10 PM.
    Cron expression: */15 6-22 * * *

  • Hourly Testing During Off-Peak Hours:
    Once an hour from 11 PM to 5 AM.
    Cron expression: 0 23,0-5 * * *

These schedules would be combined into the SPEEDTEST_SCHEDULE variable as follows:

SPEEDTEST_SCHEDULE="*/15 6-22 * * *,0 23,0-5 * * *"
@alexjustesen alexjustesen added the 🎉 feature New feature or request label Jun 24, 2024
@alexjustesen alexjustesen added this to the v1.x.x milestone Jun 24, 2024
@alexjustesen alexjustesen linked a pull request Dec 14, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants