Пример #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
 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
 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