-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename control_plane section to remote_access (#302)
* rename control_plane section to remote_access - add stub pages for remote access user guide examples - clean up of named tuple outputs example - clean-up of sagemaker distributed pytorch training Signed-off-by: cosmicBboy <[email protected]> * [PR Into 302] Added documentation for running task, launchplans ,inspecting and debgging them (#316) * Added documentation for running task, launchplans ,inspecting and debugging them Signed-off-by: Prafulla Mahindrakar <[email protected]> * Incorporated the feedback Signed-off-by: pmahindrakar-oss <[email protected]> Signed-off-by: cosmicBboy <[email protected]> * add links, formatting Signed-off-by: cosmicBboy <[email protected]> Co-authored-by: pmahindrakar-oss <[email protected]>
- Loading branch information
1 parent
1ecdfd5
commit 1049c71
Showing
17 changed files
with
204 additions
and
159 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. _remoteaccess: | ||
|
||
Remote Access | ||
------------- | ||
|
||
Flyte provides multiple ways of creating, registering, and inspecting Flyte backend | ||
entities. The main entities include Flyte tasks, workflows, launchplans, as well as | ||
their associated execution entities (for more details, see :ref:`divedeep`). This section | ||
of the user guide covers the different ways that you can programmatically control these | ||
entities to perform operations like registering tasks, workflows, and launchplans, or | ||
inspecting and debugging tasks/workflows that are running on a remote backend. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
""" | ||
Debugging Workflow and Task Executions | ||
-------------------------------------- | ||
The inspection of task and workflow execution would provide you log links to debug things further | ||
Using ``--details`` flag would shows you node executions view with log links. :: | ||
└── n1 - FAILED - 2021-06-30 08:51:07.3111846 +0000 UTC - 2021-06-30 08:51:17.192852 +0000 UTC | ||
│ ├── Attempt :0 | ||
│ └── Task - FAILED - 2021-06-30 08:51:07.3111846 +0000 UTC - 2021-06-30 08:51:17.192852 +0000 UTC | ||
│ └── Logs : | ||
│ └── Name :Kubernetes Logs (User) | ||
│ └── URI :http://localhost:30082/#/log/flytectldemo-development/f3a5a4034960f4aa1a09-n1-0/pod?namespace=flytectldemo-development | ||
Additionally you can check the pods launched by flyte in <project>-<domain> namespace :: | ||
kubectl get pods -n <project>-<domain> | ||
The launched pods will have a prefix of execution name along with suffix of nodeId :: | ||
NAME READY STATUS RESTARTS AGE | ||
f65009af77f284e50959-n0-0 0/1 ErrImagePull 0 18h | ||
So here the investigation can move ahead by describing the pod and checking the issue with Image pull. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
Inspecting Workflow and Task Executions | ||
--------------------------------------- | ||
Inspecting workflow and task executions are done in the same manner as below. For more details see the | ||
`flytectl API reference <https://docs.flyte.org/projects/flytectl/en/stable/gen/flytectl_get_execution.html>`__. | ||
Monitor the execution by providing the execution id from create command which can be task or workflow execution. :: | ||
flytectl get execution -p flytesnacks -d development <execid> | ||
For more details use ``--details`` flag which shows node executions along with task executions on them. :: | ||
flytectl get execution -p flytesnacks -d development <execid> --details | ||
If you prefer to see yaml/json view for the details then change the output format using the -o flag. :: | ||
flytectl get execution -p flytesnacks -d development <execid> --details -o yaml | ||
To see the results of the execution you can inspect the node closure outputUri in detailed yaml output. :: | ||
"outputUri": "s3://my-s3-bucket/metadata/propeller/flytesnacks-development-<execid>/n0/data/0/outputs.pb" | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
""" | ||
Creating a New Project | ||
------------------------- | ||
Creates project to be used as a home for the flyte resources of tasks and workflows. | ||
Refer to the `flytectl API reference <https://docs.flyte.org/projects/flytectl/en/stable/gen/flytectl_create_project.html>`__ | ||
for more details. | ||
.. prompt:: bash | ||
flytectl create project --id "my-flyte-project-name" --labels "my-label=my-project-label" --description "my-flyte-project-name" --name "my-flyte-project-name" | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
""" | ||
Running a Launchplan | ||
-------------------- | ||
This is multi-steps process where we create an execution spec file, update the spec file and then create the execution. | ||
More details can be found `here <https://docs.flyte.org/projects/flytectl/en/stable/gen/flytectl_create_execution.html>`__. | ||
**Generate an execution spec file** :: | ||
flytectl get launchplan -p flytesnacks -d development myapp.workflows.example.my_wf --execFile exec_spec.yaml | ||
**Update the input spec file for arguments to the workflow** :: | ||
.... | ||
inputs: | ||
name: "adam" | ||
.... | ||
**Create execution using the exec spec file** :: | ||
flytectl create execution -p flytesnacks -d development --execFile exec_spec.yaml | ||
**Monitor the execution by providing the execution id from create command** :: | ||
flytectl get execution -p flytesnacks -d development <execid> | ||
""" |
Oops, something went wrong.