We have a need to limit the number of tasks run that access a shared resource.
It'd be nice if there was a container (or task) that could have tasks added to it, and it would send to the scheduler tasks if the number was below the configured number.
This way we can keep creating tasks and when they go over the set number they are held onto, until tasks that have been scheduled complete.
It'd be great to then have a .then so when all the tasks are completed, a further task chain can be started.
Does a mechanism like this exist already?
It'd be nice if there was a container (or task) that could have tasks added to it, and it would send to the scheduler tasks if the number was below the configured number.
This way we can keep creating tasks and when they go over the set number they are held onto, until tasks that have been scheduled complete.
It'd be great to then have a .then so when all the tasks are completed, a further task chain can be started.
Does a mechanism like this exist already?