Skip to content

Commit ad91a0c

Browse files
committed
Ignore ray reinit errors in local execution
1 parent 0a9f1d7 commit ad91a0c

File tree

1 file changed

+2
-0
lines changed
  • plugins/flytekit-ray/flytekitplugins/ray

1 file changed

+2
-0
lines changed

plugins/flytekit-ray/flytekitplugins/ray/task.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ def pre_execute(self, user_params: ExecutionParameters) -> ExecutionParameters:
9494
"working_dir": working_dir,
9595
"excludes": ["script_mode.tar.gz", "fast*.tar.gz", ".python_history"],
9696
}
97+
else:
98+
init_params["ignore_reinit_error"] = True
9799

98100
ray.init(**init_params)
99101
return user_params

0 commit comments

Comments
 (0)