Skip to content

Commit

Permalink
Adjusted cf-execd schedule examples to not show ranged minute classes
Browse files Browse the repository at this point in the history
Using ranged classes for scheduling can result in multiple executions during
that period of time as cf-execd should wake up once during each minute to
determine if exec_command should be scheduled.

Ticket: ENT-11752
Changelog: None
  • Loading branch information
nickanderson committed May 2, 2024
1 parent 04fa79b commit 15787d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/example-snippets/set_up_hpc_clusters.cf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ body executor control
mailmaxlines => "30";
# Once per hour, on the hour

schedule => { "Min00_05" };
schedule => { "Min00" };
}
#######################################################

Expand Down
4 changes: 2 additions & 2 deletions reference/components/cf-execd.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ body executor control
mailto => "[email protected]";
mailfrom => "cfengine@$(host).example.org";
smtpserver => "localhost";
schedule => { "Min00_05", "Min30_35" }
schedule => { "Min00", "Min30" }
}
```

Expand Down Expand Up @@ -308,7 +308,7 @@ function may be affected by changing the `schedule`.
```cf3
body executor control
{
schedule => { "Min00", "(Evening|Night).Min15_20", "Min30", "(Evening|Night).Min45_50" };
schedule => { "Min00", "(Evening|Night).Min15", "Min30", "(Evening|Night).Min45" };
}
```

Expand Down
4 changes: 2 additions & 2 deletions reference/components/cf-hub.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ body hub control
{
# Collect reports every at the top and half of the hour. Additionally collect
# reports during the evening or night between Minute 45 and 50.
# reports during the evening or night at Minute 45.
hub_schedule => { "Min00", "Min30", "(Evening|Night).Min45_50" };
hub_schedule => { "Min00", "Min30", "(Evening|Night).Min45" };
}
```
Expand Down

0 comments on commit 15787d5

Please sign in to comment.