cloner: timer: grace interval
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
@@ -54,8 +54,8 @@ class Cloner:
|
||||
file_stamp = int(str_val)
|
||||
except ValueError:
|
||||
log.warning(f"Interval file file is corrupted, keeping value as nothing happened")
|
||||
# check time
|
||||
if time() > file_stamp + interval * 60:
|
||||
# check time - 10 second grace period for delayed jobs
|
||||
if (time() + 10) > file_stamp + interval * 60:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user