mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
Galaxy AMQP messaging now uses amqp & sqlalchemy eggs
This commit is contained in:
@@ -9,14 +9,24 @@ Once the RabbitMQ server has been setup and started with the given parameters,
|
||||
this script can be run to receive messages and update the Galaxy database accordingly
|
||||
'''
|
||||
|
||||
|
||||
from amqplib import client_0_8 as amqp
|
||||
import ConfigParser
|
||||
import sys
|
||||
import sys, os
|
||||
import optparse
|
||||
import xml.dom.minidom
|
||||
from galaxydb_interface import GalaxyDbInterface
|
||||
|
||||
assert sys.version_info[:2] >= ( 2, 4 )
|
||||
new_path = [ os.path.join( os.getcwd(), "lib" ) ]
|
||||
new_path.extend( sys.path[1:] ) # remove scripts/ from the path
|
||||
sys.path = new_path
|
||||
|
||||
from galaxy import eggs
|
||||
import pkg_resources
|
||||
pkg_resources.require( "amqplib" )
|
||||
|
||||
from amqplib import client_0_8 as amqp
|
||||
|
||||
|
||||
galaxy_config_file = 'universe_wsgi.ini'
|
||||
global dbconnstr
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#/usr/bin/python
|
||||
|
||||
from sqlalchemy import *
|
||||
from sqlalchemy.orm import sessionmaker
|
||||
from datetime import datetime, timedelta
|
||||
import sys
|
||||
import optparse
|
||||
@@ -9,6 +7,17 @@ import os
|
||||
import time
|
||||
import logging
|
||||
|
||||
assert sys.version_info[:2] >= ( 2, 4 )
|
||||
new_path = [ os.path.join( os.getcwd(), "lib" ) ]
|
||||
new_path.extend( sys.path[1:] ) # remove scripts/ from the path
|
||||
sys.path = new_path
|
||||
from galaxy import eggs
|
||||
import pkg_resources
|
||||
#pkg_resources.require( "psycopg2 >= 2.0.6" )
|
||||
pkg_resources.require( "SQLAlchemy >= 0.4" )
|
||||
from sqlalchemy import *
|
||||
from sqlalchemy.orm import sessionmaker
|
||||
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
log = logging.getLogger( 'GalaxyDbInterface' )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user