Skip to content

Commit

Permalink
[Improve][Zeta] Add more detailed log output. (#4446)
Browse files Browse the repository at this point in the history
  • Loading branch information
ic4y authored Mar 31, 2023
1 parent e05ceb7 commit d7ee509
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public TaskDeployState deployTask(@NonNull TaskGroupImmutableInformation taskImm
taskGroup =
nodeEngine.getSerializationService().toObject(taskImmutableInfo.getGroup());
}
logger.fine(
logger.info(
String.format(
"deploying task %s, executionId [%s]",
taskGroup.getTaskGroupLocation(), taskImmutableInfo.getExecutionId()));
Expand Down Expand Up @@ -287,6 +287,10 @@ public PassiveCompletableFuture<TaskExecutionState> deployLocalTask(
CompletableFuture<TaskExecutionState> resultFuture = new CompletableFuture<>();
try {
taskGroup.init();
logger.info(
String.format(
"deploying TaskGroup %s init success",
taskGroup.getTaskGroupLocation()));
Collection<Task> tasks = taskGroup.getTasks();
CompletableFuture<Void> cancellationFuture = new CompletableFuture<>();
TaskGroupExecutionTracker executionTracker =
Expand Down Expand Up @@ -322,6 +326,9 @@ public PassiveCompletableFuture<TaskExecutionState> deployLocalTask(
submitThreadShareTask(executionTracker, byCooperation.get(true));
submitBlockingTask(executionTracker, byCooperation.get(false));
taskGroup.setTasksContext(taskExecutionContextMap);
logger.info(
String.format(
"deploying TaskGroup %s success", taskGroup.getTaskGroupLocation()));
} catch (Throwable t) {
logger.severe(ExceptionUtils.getMessage(t));
resultFuture.completeExceptionally(t);
Expand Down

0 comments on commit d7ee509

Please sign in to comment.