toil.server.app¶
Attributes¶
Classes¶
WES backend implemented for Toil to run CWL, WDL, or Toil workflows. This |
Functions¶
Return the AWS region that the currently configured AWS zone (see |
|
Return True if we are currently running on EC2, and false otherwise. |
|
Return True if we are currently running on Amazon ECS, and false otherwise. |
|
|
Run a Gunicorn WSGI server. |
|
Create a "connexion.FlaskApp" instance with Toil server configurations. |
|
Start a Toil server. |
Module Contents¶
- toil.server.app.get_current_aws_region()¶
Return the AWS region that the currently configured AWS zone (see get_current_aws_zone()) is in.
- Return type:
Optional[str]
- toil.server.app.running_on_ec2()¶
Return True if we are currently running on EC2, and false otherwise.
- Return type:
- toil.server.app.running_on_ecs()¶
Return True if we are currently running on Amazon ECS, and false otherwise.
- Return type:
- class toil.server.app.ToilBackend(work_dir, state_store, options, dest_bucket_base, bypass_celery=False, wes_dialect='standard')¶
Bases:
toil.server.wes.abstract_backend.WESBackendWES backend implemented for Toil to run CWL, WDL, or Toil workflows. This class is responsible for validating and executing submitted workflows.
- Parameters:
- get_runs()¶
A generator of a list of run ids and their state.
- get_state(run_id)¶
Return the state of the workflow run with the given run ID. May raise an error if the workflow does not exist.
- get_service_info()¶
Get information about the Workflow Execution Service.
- Return type:
Dict[str, Any]
- list_runs(page_size=None, page_token=None)¶
List the workflow runs.
- get_run_log(run_id)¶
Get detailed info about a workflow run.
- get_run_status(run_id)¶
Get quick status info about a workflow run, returning a simple result with the overall state of the workflow run.
- get_stdout(run_id)¶
Get the stdout of a workflow run as a static file.
- Parameters:
run_id (str)
- Return type:
Any
- get_stderr(run_id)¶
Get the stderr of a workflow run as a static file.
- Parameters:
run_id (str)
- Return type:
Any
- get_health()¶
Return successfully if the server is healthy.
- Return type:
werkzeug.wrappers.response.Response
- get_homepage()¶
Provide a sensible result for / other than 404.
- Return type:
werkzeug.wrappers.response.Response
- toil.server.app.run_app(app, options=None)¶
Run a Gunicorn WSGI server.
- toil.server.app.version = '7.0.0-d569ea5711eb310ffd5703803f7250ebf7c19576'¶
- toil.server.app.logger¶
- toil.server.app.parser_with_server_options()¶
- Return type:
- toil.server.app.create_app(args)¶
Create a “connexion.FlaskApp” instance with Toil server configurations.
- Parameters:
args (argparse.Namespace)
- Return type:
connexion.FlaskApp
- toil.server.app.start_server(args)¶
Start a Toil server.
- Parameters:
args (argparse.Namespace)
- Return type:
None