File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# SPDX-License-Identifier: MIT
4
4
5
- __version__ = "1.2.11"
5
+
6
+ __version__ = "1.2.12"
Original file line number Diff line number Diff line change @@ -89,13 +89,13 @@ def name(self):
89
89
def initial_wait_time (self ) -> float :
90
90
if not self .running_in_sim :
91
91
"""
92
- Here we chose a random second between 1 and 59 to start the callback
92
+ Here we chose a random second between 5 and 55 to start the callback
93
93
This is to distribute load for extension running on this host
94
94
When running from the simulator, this is not done
95
95
"""
96
96
97
97
now = self .get_current_time_with_cluster_diff ()
98
- random_second = random .randint (1 , 59 ) # noqa: S311
98
+ random_second = random .randint (5 , 55 ) # noqa: S311
99
99
next_execution = datetime .now ().replace (second = random_second , microsecond = 0 )
100
100
if next_execution <= now :
101
101
# The random chosen second already passed this minute
You can’t perform that action at this time.
0 commit comments