mirror of
https://github.com/vale981/ray
synced 2025-03-05 10:01:43 -05:00
[hotfix] Fix the failure of java test (#27183)
Signed-off-by: 久龙 <guyang.sgy@antfin.com>
This commit is contained in:
parent
c624d04842
commit
79fb4a9821
2 changed files with 8 additions and 2 deletions
|
@ -217,9 +217,13 @@ public class RayConfig {
|
|||
jarUrls = config.getStringList(jarsPath);
|
||||
}
|
||||
runtimeEnvImpl = new RuntimeEnvImpl();
|
||||
if (!envVars.isEmpty()) {
|
||||
runtimeEnvImpl.set(RuntimeEnvName.ENV_VARS, envVars);
|
||||
}
|
||||
if (!jarUrls.isEmpty()) {
|
||||
runtimeEnvImpl.set(RuntimeEnvName.JARS, jarUrls);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
loggers = new ArrayList<>();
|
||||
|
|
|
@ -63,6 +63,8 @@ class JavaJarsPlugin(RuntimeEnvPlugin):
|
|||
context: RuntimeEnvContext,
|
||||
logger: Optional[logging.Logger] = default_logger,
|
||||
) -> int:
|
||||
if not uri:
|
||||
return 0
|
||||
if is_jar_uri(uri):
|
||||
module_dir = await self._download_jars(uri=uri, logger=logger)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue