Switch to unified view

a/Allura/allura/command/taskd.py b/Allura/allura/command/taskd.py
1
import os
1
import os
2
import time
2
import time
3
import Queue
3
import Queue
4
from datetime import datetime, timedelta
4
from datetime import datetime, timedelta
5
5
6
import faulthandler
6
import pylons
7
import pylons
7
from paste.deploy import loadapp
8
from paste.deploy import loadapp
8
from paste.deploy.converters import asint
9
from paste.deploy.converters import asint
9
from webob import Request
10
from webob import Request
10
11
11
import base
12
import base
13
14
faulthandler.enable()
12
15
13
class TaskdCommand(base.Command):
16
class TaskdCommand(base.Command):
14
    summary = 'Task server'
17
    summary = 'Task server'
15
    parser = base.Command.standard_parser(verbose=True)
18
    parser = base.Command.standard_parser(verbose=True)
16
    parser.add_option('-p', '--proc', dest='proc', type='int', default=1,
19
    parser.add_option('-p', '--proc', dest='proc', type='int', default=1,