Skip to content

Commit

Permalink
How to use Flyte UI (#1885)
Browse files Browse the repository at this point in the history
* How to use Flyte UI

Signed-off-by: Samhita Alla <[email protected]>

* add launch task

Signed-off-by: Samhita Alla <[email protected]>

* incorporate comments by @EngHabu and @kumare3

Signed-off-by: Samhita Alla <[email protected]>

* Simple edits

Adding some simple edits to the text.

* edits

Signed-off-by: Samhita Alla <[email protected]>

Co-authored-by: Sandra Youssef <[email protected]>
  • Loading branch information
samhita-alla and SandraGH5 authored Dec 10, 2021
1 parent 44786a8 commit e948ac0
Show file tree
Hide file tree
Showing 2 changed files with 232 additions and 0 deletions.
231 changes: 231 additions & 0 deletions rsts/concepts/flyte_console.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
.. _ui:

How to Use Flyte UI
===================

Flyte UI is a web-based user interface for Flyte. It helps interact with Flyte objects and builds DAGs out of your workflows.

With Flyte UI, you can:

* Launch Workflows
* Launch Tasks
* View Versioned Tasks and Workflows
* Trigger Versioned Tasks and Workflows
* Inspect Executions through Inputs, Outputs, Logs, and Graphs
* Clone Executions
* Relaunch Executions
* Recover Executions

.. note::
`Flyte Console <https://github.com/flyteorg/flyteconsole>`__ hosts the Flyte user interface code.

Launching Workflows
-------------------

Launch a workflow by clicking on the **Launch Workflow** button. Workflows are viewable after they are registered.
The UI should be accessible at http://localhost:30081/console.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/launch_execution_001.png
:alt: "Launch Workflow" button

Launch a workflow using the "Launch Workflow" button.

|
The end-to-end process from writing code to registering workflows is present in the :std:ref:`gettingstarted_implement`.

A pop-up window appears with input fields that the execution requires on clicking the **Launch Workflow** button.
If the default inputs are given, they will be auto-populated.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/launch_execution_002.png
:alt: Launch form

A pop-up window appears after clicking the "Launch Workflow" button.

|
An execution can be terminated/aborted by clicking on the **Terminate** button.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/launch_execution_003.png
:alt: "Terminate" button

Terminate an execution by clicking the "Terminate" button.

|
Launching Tasks
---------------

Launch a task by clicking on the **Launch Task** button. Tasks are viewable after they are registered.
The UI should be accessible at http://localhost:30081/console.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/launch_task_001.png
:alt: "Launch Task" button

Launch a task by clicking the "Launch Task" button.

|
A pop-up window appears with input fields that the task requires and the role with which the task has to run
on clicking the **Launch Task** button.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/launch_task_002.png
:alt: Launch form

A pop-up window appears on clicking the "Launch Task" button.

|
Viewing Versioned Tasks and Workflows
-------------------------------------

Every registered Flyte entity is tagged with a version. All the registered versions of workflows and tasks are viewable in the UI.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/versioned_executions.png
:alt: Versioned workflows

View versioned workflows.

|
Triggering Versioned Tasks and Workflows
----------------------------------------

Every registered Flyte entity is versioned and can be triggered anytime.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/trigger_versioned_executions.png
:alt: Trigger versioned workflows

Trigger versioned workflows.

|
Inspecting Executions
---------------------

Executions can be inspected through the UI. Inputs and Outputs can be viewed for every node and execution.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/inspect_execution_001.png
:alt: Node's inputs and outputs

View every execution node's inputs and outputs.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/inspect_execution_002.png
:alt: Execution's inputs and outputs

View every execution's inputs and outputs.

|
Logs are accessible as well.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/inspect_execution_003.png
:alt: Logs

View Kubernetes logs.

|
Every execution has two views: Nodes and Graph.

A node in the nodes view encapsulates an instance of a task, but it can also contain an entire subworkflow or trigger a child workflow.
More about nodes can be found in :std:ref:`divedeep-nodes`.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/inspect_execution_004.png
:alt: Nodes

Inspect execution's nodes in the UI.

|
Graph view showcases a static DAG.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/inspect_execution_005.png
:alt: DAG

Inspect execution's DAG in the UI.

|
Cloning Executions
------------------

An execution in the RUNNING state can be cloned.

Click on the ellipsis on the top right corner of the UI.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/clone_execution_001.png
:alt: Clone execution

Step 1: Click on the ellipsis.

|
Click on the **Clone Execution** button.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/clone_execution_002.png
:alt: Clone execution

Step 2: "Clone execution" button.

|
Relaunching Executions
----------------------

The **Relaunch** button allows you to relaunch a terminated execution with pre-populated inputs.
This option can be helpful to try out a new version of a Flyte entity.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/relaunch_execution.png
:alt: Relaunch an execution

Relaunch an execution.

|
A pop-up window appears on clicking the relaunch button, allowing you to modify the version and inputs.

Recovering Executions
---------------------

Recovery mode allows you to recover an individual execution by copying all successful node executions and running from the failed nodes.
The **Recover** button is able to recover a failed execution.

|
.. figure:: https://raw.githubusercontent.com/flyteorg/flyte/static-resources/img/flyteconsole/recover_execution.png
:alt: Recover an execution

Recover an execution.

|
1 change: 1 addition & 0 deletions rsts/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
concepts/basics
concepts/control_plane
concepts/architecture
concepts/flyte_console

.. toctree::
:caption: Deployment
Expand Down

0 comments on commit e948ac0

Please sign in to comment.