question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why are two tasks submitted to UnorderedThreadPoolEventExecutor's queue ? Even if the previous handler returns, there will still be a task submitted to UnorderedThreadPoolEventExecutor's queue?

See original GitHub issue

``Why are two tasks submitted to UnorderedThreadPoolEventExecutor’s queue ? Even if the previous handler returns, there will still be a task submitted to UnorderedThreadPoolEventExecutor’s queue?

This confused me and affected the overload protection of the system. Is there a way to ensure that no task is submitted when the previous handler return?

I would be very grateful if you could reply. `` WeChat Screenshot_20210806153253

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
15989206052commented, Nov 1, 2021

@chrisvest @NiteshKant many thx The reason was found. both fireChannelRead & channelReadComplete method of simpleChannelInboundHandler create a task, so i solved it by override channelReadComplete method.

0reactions
normanmaurercommented, Oct 14, 2021

Closing this issue as there was no more details submitted

Read more comments on GitHub >

github_iconTop Results From Across the Web

Task queuing in Executors.newFixedThreadPool() - Medium
The answer is (b) the tasks will be submitted as they come and there will be no blocking during the submission of the...
Read more >
XTaskQueueCreate - Microsoft Game Development Kit
A task queue has work and completion ports and tasks can be queued to either port. Each port can be configured with its...
Read more >
Task Execution with Asio - Packt Hub
The run function blocks until all the handlers in the queue have been dispatched and returns only when the queue is empty. By...
Read more >
When would a queue consider a task is completed?
Now, in practice, we would generally use the completion handler with a parameter, perhaps even a Result type:
Read more >
Processing streaming data with a thread pool
When a task is submitted to the thread pool, it is placed in the task ... that any tasks submitted when the queue...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found