Пример #1
0
 def make_runner(self, tasks, redis=None, pattern="*"):
     if redis is None:
         redis = self.mk_redis_config()
     args = tasks + [redis, pattern]
     options = Options()
     options.parseOptions(args)
     runner = TaskRunner(options)
     runner.redis._purge_all()   # Make sure we start fresh.
     runner.stdout = StringIO.StringIO()
     return runner
Пример #2
0
 def mk_opts_raw(self, args):
     opts = Options()
     opts.parseOptions(args)
     return opts