User guide¶
Krini lets you run tasks and workflows on compute services that implement the GA4GH Task Execution Service (TES) and Workflow Execution Service (WES) APIs, and follow their runs. It finds the services in the Cloud Registry that its operator has configured.
Browsing without login¶
Opening Krini takes you to the dashboard. Without login, the Tasks and
Workflows pages list the TES and WES services of the registry that are
served over https, and the service info page
shows what a WES service supports (e.g. workflow languages and versions).
Logging in¶
Use Login to log in with your deployment's login provider. Krini then sends your access token to the TES and WES services you use, so that they know who you are; services that require login accept it only if they trust the deployment's client (see the Operator guide). Your name in the sidebar opens a menu with your e-mail address and Logout.
Running tasks and workflows¶
- Tasks: choose a TES service, then create a task (container image, command, inputs and outputs) and follow the tasks you submitted. View Details shows a task's state and logs; Cancel stops a task that hasn't finished. The details page always shows the task on the service you listed it from, so you can reload or bookmark it; a link without a service uses the selected service, or asks you to choose one. Which tasks the list shows depends on the service: a gateway such as proTES shows only your own tasks.
- Workflows: choose a WES service, then submit a workflow run (workflow URL, type and version, parameters) and follow your runs. For a workflow with a GA4GH I/O Schema, Krini generates the form for you (see Workflows from I/O Schemas).
- Federated learning: a federated learning run is a workflow run on a
WES service that runs federated learning jobs, such as the NVFlare hub
of nvflare-wes-testbed
(workflow type
NVFLARE, version2.9). Choose that service under Workflows, choose the workflow typeNVFLAREand version2.9, enter the name of one of its jobs as the workflow URL (e.g.logreg-fedavg-4) and the sites as parameters, e.g.{"sites": ["tesk-fi", "tesk-cz", "poiesis-fi", "poiesis-cz"]}; or use the Federated learning example. Follow the run toCOMPLETE; its details list the outputs, such as the path of the trained global model, which Krini can't download yet (see Federated learning).
To try Krini, use the buttons next to Use an example: above the task or workflow form: one click fills the form with a small example that needs no inputs, which you can submit as it is or change first. The workflow form offers only the examples of the workflow languages and versions that the selected service runs. Your deployment may offer its own examples, or none. Examples describes the built-in ones.
Workflows from I/O Schemas¶
Proposal
This feature is a proposal (krini#47). It builds on unreleased Cloud Components (cloud-components#613 and #614) and may change before it is released.
A GA4GH I/O Schema describes the inputs and outputs of a workflow. With one, you don't need to know the workflow's type, version or parameter names: Krini shows a form for the inputs, checks your values as you type, and builds the run request.
- Choose a WES service.
- Under Workflow from a tool registry, choose a tool registry (the GA4GH TRS services of the service registry) and enter the tool ID and version ID of the workflow; Use the demo workflow, if your deployment offers it, enters those of the demo of the I/O Schema (see I/O Schema demo).
- Choose where the schema comes from: From the tool registry (a file
of type
IO_SCHEMA, orga4gh-io.schema.jsonof typeOTHERnext to the workflow), Upload (a JSON file of at most 1 MiB) or URL (anhttpsURL that allows cross-origin requests, fetched by your browser without credentials). An uploaded schema or one by URL can name the tool and version itself (trs_tool_id,trs_version_idofx-ga4gh-workflow); leave the fields empty to use them. - Load workflow. The form below then shows the workflow's inputs and the workflow that will run (type, version and URL), and says if the WES service doesn't run that type or version. Fill in the inputs and Submit Run; values that the schema or the service don't allow (e.g. a file URL with a scheme that the service can't fetch) are shown at their input.
The workflow runs from the tool registry: its URL is the plain primary
descriptor in TRS. Conquest runs workflows from GitHub repositories only;
for services whose service info names them Conquest, Krini takes the
repository, the commit and the main file from the descriptor's source URL
in TRS, so only workflows with a GitHub source at a full commit run there.
File inputs may use the URI schemes that the service lists in its service
info (supported_filesystem_protocols). Use the plain form goes back
to the form without a schema; without a schema, Krini always uses that
form.
Privacy¶
The privacy notice at /privacy, linked from the login page and the
sidebar, describes what Krini processes and which cookies it sets. Without
login, Krini sets no cookies, unless you start a login or change the
sidebar.