-
Notifications
You must be signed in to change notification settings - Fork 141
/
deleteRayClusterComponent.yaml
30 lines (28 loc) · 1.3 KB
/
deleteRayClusterComponent.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Stop Ray Cluster
description: Cleans and shutdowns the Ray cluster
inputs:
- { name: ray_name, type: String, description: "Ray cluster user name" }
- { name: run_id, type: String, description: "The KFP Run ID" }
- { name: server_url, type: String, default: "", description: "url of api server" }
- { name: additional_params, type: String, default: "{}", description: "additional parameters" }
implementation:
container:
image: "quay.io/dataprep1/data-prep-kit/kfp-data-processing:latest"
# command is a list of strings (command-line arguments).
# The YAML language has two syntaxes for lists and you can use either of them.
# Here we use the "flow syntax" - comma-separated strings inside square brackets.
command: [
python,
# Force the stdout and stderr streams to be unbuffered
-u,
# Path of the program inside the container
/pipelines/component/src/delete_ray_cluster.py,
--ray_name,
{ inputValue: ray_name },
--run_id,
{ inputValue: run_id },
--server_url,
{ inputValue: server_url },
--additional_params,
{ inputValue: additional_params },
]