galaxy.web.stack package

Module contents

Web application stack operations

class galaxy.web.stack.ApplicationStack(app=None, config=None)[source]

Bases: object

allowed_middleware(middleware)[source]
default_app_name = 'main'
deregister_message_handler(func=None, name=None)[source]
facts
classmethod get_app_kwds(config_section, app_name=None, for_paste_app=False)[source]
has_pool(pool_name)[source]
in_pool(pool_name)[source]
classmethod log_filter()[source]
log_filter_class

alias of ApplicationStackLogFilter

log_format = '%(name)s %(levelname)s %(asctime)s %(message)s'
log_startup()[source]
name = None
pool_name
pools = <galaxy.util.bunch.Bunch object>
prohibited_middleware = frozenset([])
register_message_handler(func, name=None)[source]
classmethod register_postfork_function(f, *args, **kwargs)[source]
send_message(dest, msg=None, target=None, params=None, **kwargs)[source]
server_name_template = '{server_name}'
set_postfork_server_name(app)[source]
shutdown()[source]
start()[source]
transport_class

alias of galaxy.web.stack.transport.ApplicationStackTransport

workers()[source]
class galaxy.web.stack.ApplicationStackLogFilter(name='')[source]

Bases: logging.Filter

filter(record)[source]

Determine if the specified record is to be logged.

Is the specified record to be logged? Returns 0 for no, nonzero for yes. If deemed appropriate, the record may be modified in-place.

class galaxy.web.stack.MessageApplicationStack(app=None, config=None)[source]

Bases: galaxy.web.stack.ApplicationStack

deregister_message_handler(func=None, name=None)[source]
register_message_handler(func, name=None)[source]
send_message(dest, msg=None, target=None, params=None, **kwargs)[source]
shutdown()[source]
start()[source]
class galaxy.web.stack.PasteApplicationStack(app=None, config=None)[source]

Bases: galaxy.web.stack.ApplicationStack

name = 'Python Paste'
class galaxy.web.stack.UWSGIApplicationStack(app=None, config=None)[source]

Bases: galaxy.web.stack.MessageApplicationStack

Interface to the uWSGI application stack. Supports running additional webless Galaxy workers as mules. Mules must be farmed to be communicable via uWSGI mule messaging, unfarmed mules are not supported.

Note that mules will use this as their stack class even though they start with the “webless” loading point.

bind_all_addrs = ('', '0.0.0.0', '[::]')
facts
classmethod get_app_kwds(config_section, app_name=None)[source]
has_pool(pool_name)[source]
in_pool(pool_name)[source]
instance_id
localhost_addrs = ('127.0.0.1', '[::1]')
log_filter_class

alias of UWSGILogFilter

log_format = '%(name)s %(levelname)s %(asctime)s [p:%(process)s,w:%(worker_id)s,m:%(mule_id)s] [%(threadName)s] %(message)s'
log_startup()[source]
name = 'uWSGI'
postfork_functions = []
prohibited_middleware = frozenset(['EvalException', 'wrap_in_static'])
classmethod register_postfork_function(f, *args, **kwargs)[source]
server_name_template = '{server_name}.{pool_name}.{instance_id}'
shutdown()[source]
start()[source]
transport_class

alias of galaxy.web.stack.transport.UWSGIFarmMessageTransport

workers()[source]
class galaxy.web.stack.UWSGILogFilter(name='')[source]

Bases: logging.Filter

filter(record)[source]

Determine if the specified record is to be logged.

Is the specified record to be logged? Returns 0 for no, nonzero for yes. If deemed appropriate, the record may be modified in-place.

class galaxy.web.stack.WeblessApplicationStack(app=None, config=None)[source]

Bases: galaxy.web.stack.ApplicationStack

name = 'Webless'
galaxy.web.stack.application_stack_class()[source]

Returns the correct ApplicationStack class for the stack under which this Galaxy process is running.

galaxy.web.stack.application_stack_instance(app=None, config=None)[source]
galaxy.web.stack.application_stack_log_filter()[source]
galaxy.web.stack.application_stack_log_formatter()[source]
galaxy.web.stack.get_app_kwds(config_section, app_name=None)[source]
galaxy.web.stack.get_stack_facts(config=None)[source]
galaxy.web.stack.register_postfork_function(f, *args, **kwargs)[source]