-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix workflow/yide #438
Conversation
@@ -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; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉你用SpecialTick.NULL
来表达了两个意思:
- TaskRun对应的tick为空
- 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()); |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上。
} | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以用guava的Uninterruptibles
。
d28d26f
to
405a136
Compare
fix add log
405a136
to
7e17925
Compare
#435