Skip to content

Commit

Permalink
Merge pull request #117 from oz123/fix_116
Browse files Browse the repository at this point in the history
Change how heuy_consumer is started
  • Loading branch information
coleifer committed Sep 11, 2015
2 parents 25d6492 + 2a160db commit ff400a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion huey/bin/huey_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def load_huey(path):
raise


if __name__ == '__main__':
def consumer_main():
parser = get_option_parser()
options, args = parser.parse_args()

Expand All @@ -115,3 +115,7 @@ def load_huey(path):
options.scheduler_interval,
options.periodic_task_interval)
consumer.run()


if __name__ == '__main__':
consumer_main()
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@
'Framework :: Django',
],
test_suite='runtests.runtests',
entry_points={
'console_scripts': [
'huey_consumer = huey.bin.huey_consumer:consumer_main'
]
}
scripts = ['huey/bin/huey_consumer.py'],
)

0 comments on commit ff400a9

Please sign in to comment.