details: http://www.bx.psu.edu/hg/galaxy/rev/7ed9740a5927 changeset: 3151:7ed9740a5927 user: rc date: Fri Dec 04 14:50:00 2009 -0500 description: AMQP listener config file bug fix diffstat: run_galaxy_listener.sh | 2 +- scripts/galaxy_messaging/server/amqp_consumer.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diffs (36 lines): diff -r 93474ea5c366 -r 7ed9740a5927 run_galaxy_listener.sh --- a/run_galaxy_listener.sh Thu Dec 03 16:16:12 2009 -0500 +++ b/run_galaxy_listener.sh Fri Dec 04 14:50:00 2009 -0500 @@ -1,4 +1,4 @@ #!/bin/sh cd `dirname $0` -python scripts/galaxy_messaging/server/amqp_consumer.py >> galaxy_listener.log 2>&1 \ No newline at end of file +python scripts/galaxy_messaging/server/amqp_consumer.py universe_wsgi.ini >> galaxy_listener.log 2>&1 \ No newline at end of file diff -r 93474ea5c366 -r 7ed9740a5927 scripts/galaxy_messaging/server/amqp_consumer.py --- a/scripts/galaxy_messaging/server/amqp_consumer.py Thu Dec 03 16:16:12 2009 -0500 +++ b/scripts/galaxy_messaging/server/amqp_consumer.py Fri Dec 04 14:50:00 2009 -0500 @@ -30,8 +30,6 @@ logging.basicConfig(level=logging.DEBUG) log = logging.getLogger( 'GalaxyAMQP' ) - -galaxy_config_file = 'universe_wsgi.ini' global dbconnstr def get_value(dom, tag_name): @@ -60,8 +58,11 @@ galaxy.change_state(sample_id, state) def main(): + if len(sys.argv) < 2: + print 'Usage: python amqp_consumer.py <Galaxy config file>' + return config = ConfigParser.ConfigParser() - config.read(galaxy_config_file) + config.read(sys.argv[1]) global dbconnstr dbconnstr = config.get("app:main", "database_connection") amqp_config = {}