From 69cdf348a315c63ca8e2cfadf96070485b11fa53 Mon Sep 17 00:00:00 2001 From: Nick Anderson Date: Thu, 2 May 2024 13:15:10 -0500 Subject: [PATCH] Adjusted cf-execd schedule examples to not show ranged minute classes 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 15787d517f8ff777d3f2226eb1b41d94ea9ab0f7) --- .../example-snippets/set_up_hpc_clusters.cf | 2 +- reference/components/cf-execd.markdown | 24 +++++++++---------- reference/components/cf-hub.markdown | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/examples/example-snippets/set_up_hpc_clusters.cf b/examples/example-snippets/set_up_hpc_clusters.cf index 6b63b1d89..c4cac8ad0 100644 --- a/examples/example-snippets/set_up_hpc_clusters.cf +++ b/examples/example-snippets/set_up_hpc_clusters.cf @@ -8,7 +8,7 @@ body executor control mailmaxlines => "30"; # Once per hour, on the hour - schedule => { "Min00_05" }; + schedule => { "Min00" }; } ####################################################### diff --git a/reference/components/cf-execd.markdown b/reference/components/cf-execd.markdown index c3f7f23e4..a9148e8d6 100644 --- a/reference/components/cf-execd.markdown +++ b/reference/components/cf-execd.markdown @@ -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 => "cfengine@example.org"; - mailfrom => "cfengine@$(host).example.org"; - smtpserver => "localhost"; - schedule => { "Min00_05", "Min30_35" } - } +body executor control +{ + splaytime => "5"; + mailto => "cfengine@example.org"; + mailfrom => "cfengine@$(host).example.org"; + smtpserver => "localhost"; + schedule => { "Min00", "Min30" } +} ``` @@ -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 diff --git a/reference/components/cf-hub.markdown b/reference/components/cf-hub.markdown index b4026f4c0..6e87413f9 100644 --- a/reference/components/cf-hub.markdown +++ b/reference/components/cf-hub.markdown @@ -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" }; } ```