Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def execute_every(self, period, func):
self.add(schedule.PeriodicCommand.after(period, func))
def as_cmd(self):
cls = schedule.PeriodicCommand if self.repeat else schedule.DelayedCommand
return cls.after(self.duration, self)
def execute_every(self, period, func):
self.add(schedule.PeriodicCommand.after(period, func))