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