|
a/Allura/allura/command/taskd.py |
|
b/Allura/allura/command/taskd.py |
|
... |
|
... |
14 |
summary = 'Task server'
|
14 |
summary = 'Task server'
|
15 |
parser = base.Command.standard_parser(verbose=True)
|
15 |
parser = base.Command.standard_parser(verbose=True)
|
16 |
parser.add_option('-p', '--proc', dest='proc', type='int', default=1,
|
16 |
parser.add_option('-p', '--proc', dest='proc', type='int', default=1,
|
17 |
help='number of worker processes to spawn')
|
17 |
help='number of worker processes to spawn')
|
18 |
parser.add_option('--dry_run', dest='dry_run', action='store_true', default=False,
|
18 |
parser.add_option('--dry_run', dest='dry_run', action='store_true', default=False,
|
19 |
help="get ready to run the reactor, but don't actually run it")
|
19 |
help="get ready to run the task daemon, but don't actually run it")
|
20 |
|
20 |
|
21 |
def command(self):
|
21 |
def command(self):
|
22 |
self.basic_setup()
|
22 |
self.basic_setup()
|
23 |
processes = [ ]
|
23 |
processes = [ ]
|
24 |
for x in xrange(self.options.proc):
|
24 |
for x in xrange(self.options.proc):
|