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
(cherry picked from commit 15787d5)
  • Loading branch information
nickanderson committed May 2, 2024
1 parent d5c11ea commit 69cdf34
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 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
24 changes: 12 additions & 12 deletions reference/components/cf-execd.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ These body settings determine the behavior of `cf-execd`,including scheduling
times and output capture to `WORKDIR/outputs` and relay via email.

```cf3
body executor control
{
splaytime => "5";
mailto => "[email protected]";
mailfrom => "cfengine@$(host).example.org";
smtpserver => "localhost";
schedule => { "Min00_05", "Min30_35" }
}
body executor control
{
splaytime => "5";
mailto => "[email protected]";
mailfrom => "cfengine@$(host).example.org";
smtpserver => "localhost";
schedule => { "Min00", "Min30" }
}
```


Expand Down Expand Up @@ -307,10 +307,10 @@ function may be affected by changing the `schedule`.
**Example:**

```cf3
body executor control
{
schedule => { "Min00", "(Evening|Night).Min15_20", "Min30", "(Evening|Night).Min45_50" };
}
body executor control
{
schedule => { "Min00", "(Evening|Night).Min15", "Min30", "(Evening|Night).Min45" };
}
```

### smtpserver
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 @@ -82,9 +82,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 69cdf34

Please sign in to comment.