Skip to content

Commit

Permalink
[Fix-16764] Tasks dispatched failed weren't delayed properly as docum…
Browse files Browse the repository at this point in the history
…ented in GlobalTaskDispatchWaitingQueueLooper
  • Loading branch information
slimtom95 authored Nov 5, 2024
1 parent 7876d45 commit d19655f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void doDispatch() {
// If dispatch failed, will put the task back to the queue
// The task will be dispatched after waiting time.
// 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);
globalTaskDispatchWaitingQueue.dispatchTaskExecuteRunnableWithDelay(taskExecutionRunnable,
waitingTimeMills);
Expand Down

0 comments on commit d19655f

Please sign in to comment.