Hi! Is there a way to shorten `ttlSecondsAfterFini...
# ray-integration
h
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
yes. update the propeller config map. change ttl to 0
h
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
nice!
k
Thank you @Hiromu Hota
154 Views