|
|
@ -80,7 +80,7 @@ public class GlobalTaskDispatchWaitingQueueLooper extends BaseDaemonThread imple |
|
|
|
// If dispatch failed, will put the task back to the queue
|
|
|
|
// If dispatch failed, will put the task back to the queue
|
|
|
|
// The task will be dispatched after waiting time.
|
|
|
|
// The task will be dispatched after waiting time.
|
|
|
|
// the waiting time will increase multiple of times, but will not exceed 60 seconds
|
|
|
|
// the waiting time will increase multiple of times, but will not exceed 60 seconds
|
|
|
|
long waitingTimeMills = Math.max( |
|
|
|
long waitingTimeMills = Math.min( |
|
|
|
taskExecutionRunnable.getTaskExecutionContext().increaseDispatchFailTimes() * 1_000L, 60_000L); |
|
|
|
taskExecutionRunnable.getTaskExecutionContext().increaseDispatchFailTimes() * 1_000L, 60_000L); |
|
|
|
globalTaskDispatchWaitingQueue.dispatchTaskExecuteRunnableWithDelay(taskExecutionRunnable, |
|
|
|
globalTaskDispatchWaitingQueue.dispatchTaskExecuteRunnableWithDelay(taskExecutionRunnable, |
|
|
|
waitingTimeMills); |
|
|
|
waitingTimeMills); |
|
|
|