forked from IBM/data-prep-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcleanupRayComponent.yaml
27 lines (25 loc) · 1.12 KB
/
cleanupRayComponent.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
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" }
implementation:
container:
image: quay.io/dataprep1/data-prep-kit/kfp-data-processing:0.1.0
# 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/cleanup_ray_cluster.py,
--ray_name,
{ inputValue: ray_name },
--run_id,
{ inputValue: run_id },
--server_url,
{ inputValue: server_url },
]