Skip to content

Commit 64c7522

Browse files
515 - after conflict resolution
1 parent 2d12d97 commit 64c7522

File tree

1 file changed

+7
-3
lines changed
  • server/libs/platform/platform-coordinator/src/main/java/com/bytechef/platform/coordinator/job

1 file changed

+7
-3
lines changed

server/libs/platform/platform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
import com.bytechef.atlas.coordinator.event.ApplicationEvent;
2525
import com.bytechef.atlas.coordinator.event.ErrorEvent;
2626
import com.bytechef.atlas.coordinator.event.JobStatusApplicationEvent;
27-
import com.bytechef.atlas.coordinator.event.TaskExecutionErrorEvent;
2827
import com.bytechef.atlas.coordinator.event.StartJobEvent;
2928
import com.bytechef.atlas.coordinator.event.TaskExecutionCompleteEvent;
29+
import com.bytechef.atlas.coordinator.event.TaskExecutionErrorEvent;
3030
import com.bytechef.atlas.coordinator.event.listener.ApplicationEventListener;
3131
import com.bytechef.atlas.coordinator.event.listener.TaskExecutionErrorEventListener;
3232
import com.bytechef.atlas.coordinator.event.listener.TaskStartedApplicationEventListener;
@@ -84,6 +84,8 @@
8484
import java.util.function.Supplier;
8585
import java.util.stream.Stream;
8686
import org.apache.commons.lang3.Validate;
87+
import org.slf4j.Logger;
88+
import org.slf4j.LoggerFactory;
8789
import org.springframework.boot.autoconfigure.thread.Threading;
8890
import org.springframework.context.ApplicationEventPublisher;
8991
import org.springframework.core.env.Environment;
@@ -95,6 +97,8 @@
9597
*/
9698
public class JobSyncExecutor {
9799

100+
private static final Logger logger = LoggerFactory.getLogger(JobSyncExecutor.class);
101+
98102
private static final List<String> WEBHOOK_COMPONENTS = List.of("apiPlatform", "chat", "webhook");
99103
private static final int NO_TIMEOUT = -1;
100104
private static final int UNLIMITED_TASK_EXECUTIONS = -1;
@@ -148,7 +152,7 @@ public JobSyncExecutor(
148152
this.timeout = timeout;
149153
this.workflowService = workflowService;
150154

151-
syncMessageBroker.receive(TaskCoordinatorMessageRoute.JOB_STOP_EVENTS, event -> {});
155+
receive(memoryMessageBroker, TaskCoordinatorMessageRoute.JOB_STOP_EVENTS, event -> {});
152156

153157
TaskHandlerResolverChain taskHandlerResolverChain = new TaskHandlerResolverChain();
154158

@@ -202,7 +206,7 @@ public JobSyncExecutor(
202206
TaskExecutionErrorEventListener taskExecutionErrorEventListener = new TaskExecutionErrorEventListener(
203207
eventPublisher, jobService, taskDispatcherChain, taskExecutionService);
204208

205-
syncMessageBroker.receive(TaskCoordinatorMessageRoute.ERROR_EVENTS,
209+
receive(memoryMessageBroker, TaskCoordinatorMessageRoute.ERROR_EVENTS,
206210
event -> taskExecutionErrorEventListener.onErrorEvent((ErrorEvent) event));
207211

208212
JobExecutor jobExecutor = new JobExecutor(

0 commit comments

Comments
 (0)