Skip to content

Commit 9cf139e

Browse files
authored
Start telemetry earlier to fix a run time issue. (#8768)
This patch fixes an issue where the telemetry start time was always returning False because the checks consider the 0 hour as being less than the 23rd hour. Starting an hour earlier fixes this. The start/run time is arbitrary, and changing it won't affect anything.
1 parent 41b36f8 commit 9cf139e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

treeherder/perf/auto_perf_sheriffing/sherlock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def telemetry_alert(self):
308308
logger.info(f"Failed: {traceback.format_exc()}")
309309

310310
def _can_run_telemetry(self):
311-
return time(23, 0) <= datetime.utcnow().time() < time(0, 0)
311+
return time(22, 0) <= datetime.utcnow().time() < time(23, 0)
312312

313313
def _create_detection_alert(
314314
self,

0 commit comments

Comments
 (0)