Skip to content

Commit da78ac1

Browse files
committed
fix: codeflare description can fail if ray-job-definition has no env field
1 parent e4cb985 commit da78ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/plugin-codeflare/src/controller/description.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function app(args: Arguments) {
6363
}
6464

6565
const jobInfo = await getJobDefinition(filepath, args.REPL)
66-
const { RAY_IMAGE } = jobInfo.runtime_env.env_vars
66+
const RAY_IMAGE = jobInfo.runtime_env.env_vars ? jobInfo.runtime_env.env_vars.RAY_IMAGE : "Unknown"
6767

6868
const status = jobInfo.status.toLowerCase()
6969

0 commit comments

Comments
 (0)