예제 #1
0
 def schedule(self, after, *args, **kwargs):
     '''Send a 'run' message & update state'''
     self._state.m.set(dict(status='pending'))
     msg = Message.new(self, 'run', args, kwargs, after=after)
     msg.send()
     return msg
예제 #2
0
 def start(self, *args, **kwargs):
     '''Send a 'run' message & update state'''
     self._state.m.set(dict(status='active'))
     msg = Message.new(self, 'run', args, kwargs)
     msg.send()
     return msg
예제 #3
0
파일: t_base.py 프로젝트: synappio/chapman
 def schedule(self, after, *args, **kwargs):
     '''Send a 'run' message & update state'''
     self._state.m.set(dict(status='pending'))
     msg = Message.new(self, 'run', args, kwargs, after=after)
     msg.send()
     return msg
예제 #4
0
파일: t_base.py 프로젝트: synappio/chapman
 def start(self, *args, **kwargs):
     '''Send a 'run' message & update state'''
     self._state.m.set(dict(status='active'))
     msg = Message.new(self, 'run', args, kwargs, send=True)
     return msg
예제 #5
0
 def schedule(self, after, *args, **kwargs):
     """Send a 'run' message & update state"""
     self._state.m.set(dict(status="pending"))
     msg = Message.new(self, "run", args, kwargs, after=after)
     msg.send()
     return msg
예제 #6
0
 def start(self, *args, **kwargs):
     """Send a 'run' message & update state"""
     self._state.m.set(dict(status="active"))
     msg = Message.new(self, "run", args, kwargs)
     msg.send()
     return msg