Fixes merge conflicts

This commit is contained in:
ilan
2017-04-05 16:44:21 +03:00
parent 81fdfa6abe
commit e84422530b
2 changed files with 22 additions and 2 deletions
+11 -2
View File
@@ -3,7 +3,7 @@ from django.utils.translation import ugettext as _
from django_q import VERSION
from django_q.conf import Conf
from django_q.monitor import info
from django_q.monitor import info, get_ids
class Command(BaseCommand):
@@ -18,9 +18,18 @@ class Command(BaseCommand):
default=False,
help='Print current configuration.',
)
parser.add_argument(
'--ids',
action='store_true',
dest='ids',
default=False,
help='Print cluster task ID(s) (PIDs).',
)
def handle(self, *args, **options):
if options.get('config', False):
if options.get('ids', True):
get_ids()
elif options.get('config', False):
hide = ['conf', 'IDLE', 'STOPPING', 'STARTING', 'WORKING', 'SIGNAL_NAMES', 'STOPPED']
settings = [a for a in dir(Conf) if not a.startswith('__') and a not in hide]
self.stdout.write('VERSION: {}'.format('.'.join(str(v) for v in VERSION)))