snakemake.logging.WMSLogger

class snakemake.logging.WMSLogger(address=None, args=None, metadata=None)[source]
__init__(address=None, args=None, metadata=None)[source]

A WMS monitor is a workflow management system logger to enable monitoring with something like Panoptes. The address corresponds to the –wms-monitor argument, and args should be a list of key/value pairs with extra arguments to send to identify the workflow. We require the logging server to exist and receive creating a workflow to start the run, but we don’t exit with error if any updates fail, as the workflow will already be running and it would not be worth stopping it.

Methods

__init__([address, args, metadata])

A WMS monitor is a workflow management system logger to enable monitoring with something like Panoptes.

check_response(response[, endpoint])

A helper function to take a response and check for an expected set of error codes, 404 (not found), 401 (requires authorization), 403 (permission denied), 500 (server error) and 200 (success).

create_workflow()

Creating a workflow means pinging the wms server for a new id, or if providing an argument for an existing workflow, ensuring that it exists and receiving back the same identifier.

log_handler(msg)

Custom wms server log handler.

service_info()

Service Info ensures that the server is running.