Skip to content

Commit

Permalink
Remove tabs, and add conf file
Browse files Browse the repository at this point in the history
  • Loading branch information
lwhite committed Feb 19, 2018
1 parent ecc2a0d commit 65bddb2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
13 changes: 7 additions & 6 deletions bin/emq-router
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
import argparse

from eventmq.log import setup_logger
from eventmq import conf
from eventmq.router import Router

if __name__ == "__main__":
parser = argparse.ArgumentParser(
description='Route job messages to their appropriate queues')
parser.add_argument('--config', '-C', type=str, nargs='?',
parser = argparse.ArgumentParser(
description='Route job messages to their appropriate queues')
parser.add_argument('--config', '-C', type=str, nargs='?',
help='manually specify the location of eventmq.conf')

args = parser.parse_args()
args = parser.parse_args()

if args.config:
conf.CONFIG_FILE = args.config
if args.config:
conf.CONFIG_FILE = args.config

r = Router()
r.router_main()
13 changes: 7 additions & 6 deletions bin/emq-scheduler
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
#!/usr/bin/env python
# -*- mode: python -*-
import argparse
from eventmq import conf
from eventmq.scheduler import Scheduler

if __name__ == "__main__":
parser = argparse.ArgumentParser(
description='Listen for scheduled jobs and run them')
parser.add_argument('--config', '-C', type=str, nargs='?',
parser = argparse.ArgumentParser(
description='Listen for scheduled jobs and run them')
parser.add_argument('--config', '-C', type=str, nargs='?',
help='manually specify the location of eventmq.conf')

args = parser.parse_args()
args = parser.parse_args()

if args.config:
conf.CONFIG_FILE = args.config
if args.config:
conf.CONFIG_FILE = args.config

s = Scheduler()
s.scheduler_main()
2 changes: 1 addition & 1 deletion eventmq/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = 'EventMQ Contributors'
__version__ = '0.3.5.4'
__version__ = '0.3.5.6'

PROTOCOL_VERSION = 'eMQP/1.0'

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='eventmq',
version='0.3.5.4',
version='0.3.5.6',
description='EventMQ job execution and messaging system based on ZeroMQ',
packages=find_packages(),
install_requires=['pyzmq==15.4.0',
Expand Down

0 comments on commit 65bddb2

Please sign in to comment.