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
-
class
galaxy.web.stack.
UWSGILogFilter
(name='')[source]¶ Bases:
logging.Filter
-
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>¶
-
pool_name
¶
-
facts
¶
-
-
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', '[::]')¶
-
instance_id
¶
-
facts
¶
-
-
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.
Submodules¶
galaxy.web.stack.message module¶
Web Application Stack worker messaging
-
class
galaxy.web.stack.message.
ApplicationStackMessageDispatcher
[source]¶ Bases:
object
-
handler_count
¶
-
-
class
galaxy.web.stack.message.
ApplicationStackMessage
(target=None, **kwargs)[source]¶ Bases:
dict
-
default_handler
= None¶
-
bind_default_handler
(obj, name)[source]¶ Bind the default handler method to obj as attribute name.
This could also be implemented as a mixin class.
-
target
¶
-
set_target
¶
-
-
class
galaxy.web.stack.message.
ParamMessage
(target=None, params=None, **kwargs)[source]¶ Bases:
galaxy.web.stack.message.ApplicationStackMessage
-
params
¶
-
set_params
¶
-
-
class
galaxy.web.stack.message.
TaskMessage
(target=None, params=None, **kwargs)[source]¶ Bases:
galaxy.web.stack.message.ParamMessage
-
static
default_handler
(msg)[source]¶ Can be bound to an instance of any class that has message handling methods named like _handle_{task}_method
-
task
¶
-
static
-
class
galaxy.web.stack.message.
JobHandlerMessage
(target=None, params=None, **kwargs)[source]¶ Bases:
galaxy.web.stack.message.TaskMessage
-
target
= 'job_handler'¶
-
-
class
galaxy.web.stack.message.
WorkflowSchedulingMessage
(target=None, params=None, **kwargs)[source]¶ Bases:
galaxy.web.stack.message.TaskMessage
-
target
= 'workflow_scheduling'¶
-
galaxy.web.stack.transport module¶
Web application stack operations
-
class
galaxy.web.stack.transport.
ApplicationStackTransport
(app, stack, dispatcher=None)[source]¶ Bases:
object
-
SHUTDOWN_MSG
= '__SHUTDOWN__'¶
-
-
class
galaxy.web.stack.transport.
UWSGIFarmMessageTransport
(app, stack, dispatcher=None)[source]¶ Bases:
galaxy.web.stack.transport.ApplicationStackTransport
Communication via uWSGI Mule Farm messages. Communication is unidirectional (workers -> mules).