Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinw66 committed Jun 30, 2024
1 parent 9c75171 commit 4f88a05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ public void run() {
for (Task task : stage.getTasks()) {
beforeRunTask(task);

CommandRequest request = ProtobufUtil.fromJson(task.getContent(), CommandRequest.class);
CommandRequest.Builder builder = CommandRequest.newBuilder(request);
CommandRequest protoRequest = ProtobufUtil.fromJson(task.getContent(), CommandRequest.class);
CommandRequest.Builder builder = CommandRequest.newBuilder(protoRequest);
builder.setTaskId(task.getId());
builder.setStageId(stage.getId());
builder.setJobId(stage.getJob().getId());
CommandRequest request = builder.build();

futures.add(CompletableFuture.supplyAsync(() -> {
commandLogService.onLogStarted(task.getId(), task.getHostname());
Expand Down
1 change: 1 addition & 0 deletions bigtop-manager-ui/src/api/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ request.interceptors.response.use(
} else if (error.code === AxiosError.ETIMEDOUT) {
message.error(i18n.global.t('common.error_timeout'))
} else {
console.log(error)
message.error(i18n.global.t('common.error_unknown'))
}

Expand Down
2 changes: 1 addition & 1 deletion bigtop-manager-ui/src/utils/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

export const API_RETRY_TIME = 3
export const API_EXPIRE_TIME = 3 * 1000
export const API_EXPIRE_TIME = 30 * 1000
export const JOB_SCHEDULE_INTERVAL = 1000
export const MONITOR_SCHEDULE_INTERVAL = 10 * 1000
export const DEFAULT_PAGE_SIZE = 10

0 comments on commit 4f88a05

Please sign in to comment.