Use `<expression type="random">` for randomized cronjobs
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 21 Apr 2023 11:01:36 +0000 (13:01 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 24 Apr 2023 08:53:30 +0000 (10:53 +0200)
see #5202

com.woltlab.wcf/cronjob.xml

index 95f00445bf8e3731e7941f606b84aed128eb9cd5..6d965ee9aafd0297284a46804e530b6108b2e1d3 100644 (file)
@@ -5,14 +5,14 @@
                        <classname>wcf\system\cronjob\GetUpdateInfoCronjob</classname>
                        <description>Updates package information</description>
                        <description language="de">Aktualisiert Paket-Informationen</description>
-                       <expression>0 2 * * *</expression>
+                       <expression type="random">@daily</expression>
                        <canbedisabled>0</canbedisabled>
                </cronjob>
                <cronjob name="com.woltlab.wcf.refreshSearchRobots">
                        <classname>wcf\system\cronjob\RefreshSearchRobotsCronjob</classname>
                        <description>Refreshes list of search robots</description>
                        <description language="de">Aktualisiert die Liste der Suchroboter</description>
-                       <expression>0 3 1 * *</expression>
+                       <expression type="random">@monthly</expression>
                </cronjob>
                <cronjob name="com.woltlab.wcf.dailyCleanUp">
                        <classname>wcf\system\cronjob\DailyCleanUpCronjob</classname>