westonpace commented on PR #40722:
URL: https://github.com/apache/arrow/pull/40722#issuecomment-2031844729

   > I get to understand why "pause" "resume" is important. But I remain a 
point that don't understand. When throttle and max_concurrent_cost = 1, the 
max-running-task = 1, wouldn't Release and ContinueTasks() being called after 
current pending task (size = 1) is finished?
   
   A task is "running" even when it is blocked on backpressure.  Since 
max-running-task is 1 then Release/ContinueTasks won't be called until the 
`has_room` future has finished.  In the meantime, more tasks may have arrived.  
Since a task was running and max-running-tasks is 1 then those tasks are put in 
the queue.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to