Boris Tseytlin
06/13/2023, 11:18 AMprefect-prefect-agent-3 | 11:17:06.370 | DEBUG | prefect.engine - Received wait instruction for 30s: Concurrency limit for the max_4_concurrent tag has been reached
What am I doing wrong?
For context: each task has to fetch a thing from the databse, send a POST request to an ML model, write a thing to the databse. I need no more than 4 tasks being executed in parllel, so that the model and the database are not overwhelmed.Dominic Tarro
06/13/2023, 12:44 PMBoris Tseytlin
06/13/2023, 3:44 PMDominic Tarro
06/13/2023, 5:24 PMwait_for
anything?Boris Tseytlin
06/14/2023, 9:45 AMlabeling_task_ids = [task.id for task in labeling_tasks]
<http://logger.info|logger.info>("Found %s labeling tasks for %s", len(labeling_tasks), date)
futures = label_task.map(
labeling_task_ids,
db_uri,
inference_api_url,
exists_behavior,
)
results = [future.result() for future in futures]
Dominic Tarro
06/14/2023, 1:54 PMlabeling_tasks
? Are those task runs?Dominic Tarro
06/14/2023, 1:57 PMlabel_task
, you may end up in a deadlock as the label_task
picks up concurrency slots that prevent your labeling_tasks
from beginningBoris Tseytlin
06/16/2023, 8:42 AMDominic Tarro
06/16/2023, 6:09 PMBoris Tseytlin
06/16/2023, 7:40 PM