Exemplo n.º 1
0
	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)))
Exemplo n.º 2
0
	def fix_callable(self):
		module = module_by_name(self.__module__)
		method = function_by_name(module, self.__name__)
		self._callable = method
Exemplo n.º 3
0
	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)