2 ms·
It’s possible to write a scheduler that looks like work stealing and can route unordered tasks around a poison pill. But we’ve generally found it works better
by hinkley 2y ago
It’s possible to write a scheduler that looks like work stealing and can route unordered tasks around a poison pill.
But we’ve generally found it works better for the worker to pull when its queue is empty, and of course if you have partially ordered events nobody can process (start or reject) those ordered tasks until the borked one finishes or times out.
So the situation you describe can absolutely happen, but is not a given. It’ll depend on other decisions.