Is there a way to dynamically change the properties of the flow executor?
I have a specific situation where I run say 30 tasks in parallel (using mapping) to retrieve data, but the data provider can reply that the API is overused in which case I need to reduce the amount of workers in the dask executor to 1, otherwise the provider will ban the IP.
I could handle that somehow internally to the download task with threading.Lock, but I guess that would only work for the threading local dask executor.
Can it be handled at the prefect flow or task level?