https://flyte.org logo
#ray-integration
Title
# ray-integration
h

Hiromu Hota

12/20/2022, 9:21 PM
Hi! Is there a way to shorten
ttlSecondsAfterFinished
? By default, it is 3600s (1 hour) and we’d like to tear down a cluster right after a job is complete. Thanks for your help!
Copy code
$ k describe rayjobs feb5da8c2a2394fb4ac8-n0-0 -n flytesnacks-development
...
  Ttl Seconds After Finished:   3600
k

Kevin Su

12/20/2022, 9:30 PM
yes. update the propeller config map. change ttl to 0
h

Hiromu Hota

12/20/2022, 9:31 PM
Thanks for your prompt reply! Let me try this!
It worked like a charm!
Copy code
$ kubectl describe rayjobs f3281d8b2689c4c35a67-n0-0  -n flytesnacks-development
  Ttl Seconds After Finished:   60
For those who want to do the same, add this
ray.ttlSecondsAfterFinished
to the values.yaml for flyte-core.
Copy code
# -- Kubernetes specific Flyte configuration
  k8s:
    plugins:
      ray:
        ttlSecondsAfterFinished: 60
k

Kevin Su

12/20/2022, 10:13 PM
nice!
k

Ketan (kumare3)

12/20/2022, 10:49 PM
Thank you @Hiromu Hota
2 Views