Merge 6a392fdb91 into d520615e53
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 * * * * * *",
|
||||||
|
)
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ func TestNextN_every5min(t *testing.T) {
|
|||||||
for i, next := range result {
|
for i, next := range result {
|
||||||
nextStr := next.Format("Mon, 2 Jan 2006 15:04:05")
|
nextStr := next.Format("Mon, 2 Jan 2006 15:04:05")
|
||||||
if nextStr != expected[i] {
|
if nextStr != expected[i] {
|
||||||
t.Errorf(`MustParse("*/5 * * * *").NextN("2013-09-02 08:44:30", 5):\n"`)
|
t.Errorf(`MustParse("*/5 * * * *").NextN("2013-09-02 08:44:30", 5):\n"`)
|
||||||
t.Errorf(` result[%d]: expected "%s" but got "%s"`, i, expected[i], nextStr)
|
t.Errorf(` result[%d]: expected "%s" but got "%s"`, i, expected[i], nextStr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -310,6 +310,7 @@ func TestInterval_Interval60Issue(t *testing.T){
|
|||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var benchmarkExpressions = []string{
|
var benchmarkExpressions = []string{
|
||||||
|
"@minutely",
|
||||||
"* * * * *",
|
"* * * * *",
|
||||||
"@hourly",
|
"@hourly",
|
||||||
"@weekly",
|
"@weekly",
|
||||||
|
|||||||
Reference in New Issue
Block a user