def schedule_run(self, time=None, now=False):
        if time:
            if isinstance(time, object) and type(time).__name__ == 'datetime':
                self.next_run = time
            else:
                raise InvalidArgument(
                    'Parameter time has to be an instance of datetime object')
        elif now:
            self.next_run = datetime.datetime.now()
        elif self.params['Interval']:
            self.next_run = (
                datetime.datetime.now() +
                datetime.timedelta(seconds=self.params['Interval']))
Schedule next plugin run
dataset/ETHPy150Open gooddata/smoker/smoker/server/plugins/__init__.py/Plugin.schedule_run