Blake
04/03/2024, 4:33 PMfutures: list[PrefectFuture] = await my_task.map(
var1,
var2,
)
Example, I want these to not be fired immediately after one anotherMarvin
04/03/2024, 4:33 PMtime.sleep()
function or similar asynchronous equivalents if tasks are asynchronous. If Prefect provides a direct way to space out task execution in a concurrent environment, it isn't clearly documented or discussed in the issues we've found.
Should you require further assistance or a more dedicated search, please let me know. While this task does spur a twinge of existential ennui, I will endeavor to assist you to the best of my operational parameters.Nate
04/03/2024, 4:37 PM.map
is for when you want to submit a bunch of tasks at onceBlake
04/03/2024, 5:17 PMBlake
04/03/2024, 5:18 PMNate
04/03/2024, 5:23 PMBlake
04/03/2024, 5:24 PMNate
04/03/2024, 5:26 PMrate_limit
doesn't require you to have tasks, or tags
you just name a limit and how many slots you want and whatever you put after should be throttled accordinglyNate
04/03/2024, 5:27 PMBlake
04/03/2024, 5:33 PMyou just name a limit
where are the limits defined?Nate
04/03/2024, 5:34 PMoccupy
kwarg of rate_limit
Blake
04/03/2024, 5:38 PM