I think I can bring new insights to this. There still is a chance a resource is held by another immediate
task currently executed on an api-worker so the first api-worker would dispatch it’s immediate
task into the tasking queue where it would pile up if all workers were currently busy (with syncs). The chance for this to happen is comparably very low. But we are talking about scaling up after all. And a user dispatching multiple actions to the same repository in fast succession sounds like a common scenario.
OTOH, whenever a task is dispatched from the content app, we will never tell anyone so I don’t see much value in adding immediate execution of tasks in the content app. I’d rather keep the additional load out of there. (This is the thing we have technical difficulties implementing too.)
So given both of them, I see value in implementing PULP-397 as planned. We would basically get this benefit too:
The question remains is the value worth adding the complexity for it?