-
Notifications
You must be signed in to change notification settings - Fork 12
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
Repeat strategy limitation #8
Comments
Thank you @AI-Joe !! This makes sense, the schema definitely needs more refining. cc: @Sanjay1611 |
Thank you @AI-Joe !! Its a good catch, We definitely want to improve the schema over time |
An alternate approach can be -
This example is not having any
This example is not having any
This example is missing both the timestamps. So the schedule will be repeated from |
What are your views on this @AI-Joe |
@Sanjay1611 I think that allowing endTime/startTime to be nil is a better approach! I only briefly mentioned this in the problem, but allowing an infinite repeat feels incomplete to me without run hour restrictions.
This example is an infinite repeat that doesn't run after business hours. By not including the includedHours field the user is selecting to run every hour. Edit -- I forgot that minChaosInterval also supports hours.. so by adding this includedHours field, minChaosInterval could just support the minutes. |
@AI-Joe I think |
+1 to |
Will be changing
|
Problem
The current definitions of start and end time boxes the repeat strategy in. Meaning that you could not repeat indefinitely or even for multiple days between certain hours. The use case is to execute experiments on a schedule within business hours/days for an extended or indefinite duration of time.
Current
This will start at 1pm and end at 8:30pm UTC on the day defined. I'm not really sure where the included days come in to play here. The cron expression created seems like the actual day of the repeat times would not affect the creation of the engines. However, when the engines are actually created it will end the schedule once it is after the user specified end time.
This example, without temporarily halting the schedule, will execute every 30 minutes from the start to the end time excluding weekends.
Future
By adding this field the user can opt out of the after end time check, creating an indefinite repeat schedule. Then in the creation of the cron expression you could have something like
return fmt.Sprintf("*/%d %d-%d * * %s", interval, startHour, endHour, includedDays), time.Minute * time.Duration(interval), nil
The text was updated successfully, but these errors were encountered: