mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 14:55:50 +08:00
Fix streaming ci (#8159)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- This file is auto-generated by Bazel from pom_template.xml, do not modify it. -->
|
||||
<!-- This file is auto-generated by Bazel from pom_template.xml, do not modify it. -->
|
||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
@@ -76,11 +76,6 @@
|
||||
<artifactId>powermock-module-testng</artifactId>
|
||||
<version>1.6.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.16.20</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
|
||||
+2
-2
@@ -55,9 +55,9 @@ public class JobSchedulerImpl implements JobScheduler {
|
||||
}
|
||||
|
||||
/**
|
||||
* Allocating job worker resource then create job worker actor
|
||||
* Allocate job workers' resource then create job workers' actor.
|
||||
*
|
||||
* @param executionGraph
|
||||
* @param executionGraph the physical plan
|
||||
*/
|
||||
protected void prepareResourceAndCreateWorker(ExecutionGraph executionGraph) {
|
||||
List<Container> containers = resourceManager.getRegisteredContainers();
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ public class WorkerLifecycleController {
|
||||
RayActor<JobWorker> actor = null;
|
||||
// TODO (datayjz): ray create actor
|
||||
|
||||
if (null == actor) {
|
||||
if (null == actor) {
|
||||
LOG.error("Create worker actor failed.");
|
||||
return false;
|
||||
}
|
||||
|
||||
-3
@@ -14,9 +14,6 @@ public class ChannelUtils {
|
||||
if (conf.containsKey(Config.STREAMING_JOB_NAME)) {
|
||||
builder.setJobName(conf.get(Config.STREAMING_JOB_NAME));
|
||||
}
|
||||
if (conf.containsKey(Config.TASK_JOB_ID)) {
|
||||
builder.setTaskJobId(conf.get(Config.TASK_JOB_ID));
|
||||
}
|
||||
if (conf.containsKey(Config.STREAMING_WORKER_NAME)) {
|
||||
builder.setWorkerName(conf.get(Config.STREAMING_WORKER_NAME));
|
||||
}
|
||||
|
||||
+2
-3
@@ -49,11 +49,10 @@ public abstract class StreamTask implements Runnable {
|
||||
private void prepareTask() {
|
||||
Map<String, String> queueConf = new HashMap<>();
|
||||
worker.getConfig().forEach((k, v) -> queueConf.put(k, String.valueOf(v)));
|
||||
String queueSize = (String) worker.getConfig()
|
||||
String queueSize = worker.getConfig()
|
||||
.getOrDefault(Config.CHANNEL_SIZE, Config.CHANNEL_SIZE_DEFAULT);
|
||||
queueConf.put(Config.CHANNEL_SIZE, queueSize);
|
||||
queueConf.put(Config.TASK_JOB_ID, Ray.getRuntimeContext().getCurrentJobId().toString());
|
||||
String channelType = (String) worker.getConfig()
|
||||
String channelType = worker.getConfig()
|
||||
.getOrDefault(Config.CHANNEL_TYPE, Config.MEMORY_CHANNEL);
|
||||
queueConf.put(Config.CHANNEL_TYPE, channelType);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user