Next commit introduces a module option to allow minute granularity
snapshots.
Signed-off-by: Venky Shankar <vshankar@redhat.com>
log = logging.getLogger(__name__)
-
-TESTING = 'SNAP_SCHED_TESTING' in environ
-
-
# Work around missing datetime.fromisoformat for < python3.7
SNAP_DB_TS_FORMAT = '%Y-%m-%dT%H:%M:%S'
try:
def repeat(self):
mult = self.schedule[-1]
period = int(self.schedule[0:-1])
- if TESTING and mult == 'M':
+ if mult == 'M':
return period * 60
elif mult == 'h':
return period * 60 * 60