Add @minutely as pre-defined schedule

This commit is contained in:
Mathias Lafeldt 2016-07-19 14:41:46 +02:00
parent f0984319b4
commit 6a392fdb91
No known key found for this signature in database
GPG Key ID: 942469C8EC936D44
3 changed files with 6 additions and 2 deletions

View File

@ -61,6 +61,7 @@ Predefined cron expressions
@weekly Run once a week at midnight in the morning of Sunday 0 0 0 * * 0 * @weekly Run once a week at midnight in the morning of Sunday 0 0 0 * * 0 *
@daily Run once a day at midnight 0 0 0 * * * * @daily Run once a day at midnight 0 0 0 * * * *
@hourly Run once an hour at the beginning of the hour 0 0 * * * * * @hourly Run once an hour at the beginning of the hour 0 0 * * * * *
@minutely Run once a minute at the beginning of the minute 0 * * * * * *
@reboot Not supported @reboot Not supported
Other details Other details

View File

@ -204,7 +204,9 @@ var cronNormalizer = strings.NewReplacer(
"@monthly", "0 0 0 1 * * *", "@monthly", "0 0 0 1 * * *",
"@weekly", "0 0 0 * * 0 *", "@weekly", "0 0 0 * * 0 *",
"@daily", "0 0 0 * * * *", "@daily", "0 0 0 * * * *",
"@hourly", "0 0 * * * * *") "@hourly", "0 0 * * * * *",
"@minutely", "0 * * * * * *",
)
/******************************************************************************/ /******************************************************************************/

View File

@ -287,6 +287,7 @@ func TestNextN_every5min(t *testing.T) {
/******************************************************************************/ /******************************************************************************/
var benchmarkExpressions = []string{ var benchmarkExpressions = []string{
"@minutely",
"* * * * *", "* * * * *",
"@hourly", "@hourly",
"@weekly", "@weekly",