code: def run(self, force=False):
          
          now = time.time()
          for func, spec in self.tasks.items():
              if force or now >= spec.get('next_run', 0):
                  func()
                  spec['next_run'] = now + spec['interval']
docs: Run all pending tasks; 'force' will run all tasks whether they're
          pending or not.