Warning

This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

galaxy.web.stack package

Web application stack operations

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

Bases: logging.Filter

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

Bases: logging.Filter

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

Bases: object

name = None
prohibited_middleware = frozenset([])
transport_class

alias of galaxy.web.stack.transport.ApplicationStackTransport

log_filter_class

alias of ApplicationStackLogFilter

log_format = '%(name)s %(levelname)s %(asctime)s %(message)s'
server_name_template = '{server_name}'
default_app_name = 'main'
pools = <galaxy.util.bunch.Bunch object>
classmethod log_filter()[source]
classmethod get_app_kwds(config_section, app_name=None, for_paste_app=False)[source]
classmethod register_postfork_function(f, *args, **kwargs)[source]
__init__(app=None, config=None)[source]
log_startup()[source]
start()[source]
allowed_middleware(middleware)[source]
workers()[source]
pool_name
has_pool(pool_name)[source]
in_pool(pool_name)[source]
facts
set_postfork_server_name(app)[source]
register_message_handler(func, name=None)[source]
deregister_message_handler(func=None, name=None)[source]
send_message(dest, msg=None, target=None, params=None, **kwargs)[source]
shutdown()[source]
class galaxy.web.stack.MessageApplicationStack(app=None, config=None)[source]

Bases: galaxy.web.stack.ApplicationStack

__init__(app=None, config=None)[source]
start()[source]
register_message_handler(func, name=None)[source]
deregister_message_handler(func=None, name=None)[source]
send_message(dest, msg=None, target=None, params=None, **kwargs)[source]
shutdown()[source]
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.

name = 'uWSGI'
prohibited_middleware = frozenset(['EvalException', 'wrap_in_static'])
transport_class

alias of galaxy.web.stack.transport.UWSGIFarmMessageTransport

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'
server_name_template = '{server_name}.{pool_name}.{instance_id}'
postfork_functions = []
localhost_addrs = ('127.0.0.1', '[::1]')
bind_all_addrs = ('', '0.0.0.0', '[::]')
classmethod get_app_kwds(config_section, app_name=None)[source]
classmethod register_postfork_function(f, *args, **kwargs)[source]
__init__(app=None, config=None)[source]
instance_id
log_startup()[source]
start()[source]
has_pool(pool_name)[source]
in_pool(pool_name)[source]
workers()[source]
facts
shutdown()[source]
class galaxy.web.stack.PasteApplicationStack(app=None, config=None)[source]

Bases: galaxy.web.stack.ApplicationStack

name = 'Python Paste'
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.register_postfork_function(f, *args, **kwargs)[source]
galaxy.web.stack.get_app_kwds(config_section, app_name=None)[source]
galaxy.web.stack.get_stack_facts(config=None)[source]