/tut2/Tutorial2Runner.py
Python | 19 lines | 14 code | 5 blank | 0 comment | 1 complexity | f964673ffc268f60a1c47019c0cad829 MD5 | raw file
- from Runner import Runner
- class Tutorial2Runner(Runner):
- def __init__(self, count):
- super(type(self), self)
- self.count = count
- def kickoff(self):
- count = self.count
- for i in range(1, count):
- message = "Sending message # %s %s" % (i, "." * i)
- command = "python durable_task.py '%s'" % message
- print "Running command \"%s\"" % command
- self._run(command, shell=True)
- runner = Tutorial2Runner(30)
- runner.kickoff()