def delay(self): args = [] args.extend(self.args) kwargs = self.kwargs.copy() module = module_by_name(self.__module__) method = function_by_name(module, self.__name__) publish(message=pickle.dumps(Stone(method, *args, **kwargs)))
def fix_callable(self): module = module_by_name(self.__module__) method = function_by_name(module, self.__name__) self._callable = method
def delay(self): module = module_by_name(self.__module__) method = function_by_name(module, self.__name__) publish(message=pickle.dumps(PeriodicStone(method, self.every)), queue=SISYPHUS_SCHEDULER_QUEUE_NAME)