Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix workflow/yide #438

Closed
wants to merge 4 commits into from
Closed

Fix workflow/yide #438

wants to merge 4 commits into from

Conversation

shikimoe
Copy link
Contributor

@shikimoe shikimoe commented Mar 8, 2021

@shikimoe shikimoe self-assigned this Mar 8, 2021
@@ -113,7 +113,7 @@ public TaskBuilder cloneBuilder() {
}

public boolean shouldSchedule(Tick tick, OffsetDateTime currentTime) {
if(tick == SpecialTick.DIRECTLY_TICK){
if(tick == SpecialTick.NULL){
return true;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉你用SpecialTick.NULL来表达了两个意思:

  1. TaskRun对应的tick为空
  2. TaskRun是手动起调的

不要用一个对象来表达两个意思,除非这两个意思是同一个意思。

@@ -153,9 +154,11 @@ public boolean statusUpdate(TaskAttemptMsg attemptMsg) {
TaskRunStatus taskRunStatus = attemptMsg.getTaskRunStatus();
if (taskRunStatus.isFinished()) {
if (workerPool.containsKey(attemptMsg.getTaskAttemptId())) {
logger.info("taskAttemptId = {} going to release", attemptMsg.getTaskAttemptId());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这类非常底层的日志应该是debug日志。

queueManage.release(attemptMsg.getQueueName());
}
workerPool.remove(attemptMsg.getTaskAttemptId());
logger.info("remove taskAttemptId = {} from worker pool", attemptMsg.getTaskAttemptId());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上。

}
try {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以用guava的Uninterruptibles

@shikimoe shikimoe force-pushed the FIX-workflow/yide branch from d28d26f to 405a136 Compare March 16, 2021 02:32
seaway-z and others added 4 commits March 19, 2021 11:00
fix

add log
fix conflict

ignore searchTaskRunsWithScheduleType test
@shikimoe shikimoe force-pushed the FIX-workflow/yide branch from 405a136 to 7e17925 Compare March 19, 2021 05:01
@shikimoe shikimoe closed this Mar 19, 2021
@MeloQiao MeloQiao deleted the FIX-workflow/yide branch March 26, 2021 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants