We are getting frequent timeouts on mlflow on machine learning

Stéphane Renou 20 Reputation points
2025-04-23T15:13:09.16+00:00

On frequent basis, our code is getting timed out after 2 minutes when trying to get status of a ML flow job.

A recent example is showing the response as:

Retrying (Retry(total=6, connect=7, read=6, redirect=7, status=7)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='francecentral.api.azureml.ms', port=443): Read timed out. (read timeout=120)")': /mlflow/v2.0/subscriptions/28377576-89a8-4e51-8209-45265b06caee/resourceGroups/rg-prod-sales-azure/providers/Microsoft.MachineLearningServices/workspaces/mlw-sales-azure-prod-lc/api/2.0/mlflow/runs/search

we are making the call from the compute:

/subscriptions/28377576-89a8-4e51-8209-45265b06caee/resourceGroups/RG-PROD-MAIN/providers/Microsoft.Compute/virtualMachines/LearnVM
/subscriptions/28377576-89a8-4e51-8209-45265b06caee/resourceGroups/RG-PROD-MAIN/providers/Microsoft.Compute/virtualMachines/LearnVM

The call fails at:

/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py

while doing: urlopen

We are using mlflow library in python and we don't understand why on frequent basis, those calls are timing out after 2 minutes while all our infrastructure is located next to each other.

We are using libraries:
azure-ai-ml version 1.26.0

azureml-mlflow version 1.59.0.post1
mlflow-skinny version 2.21.1

Azure Machine Learning

1 answer

Sort by: Most helpful
  1. Mohammad Bani Hani 6 Reputation points Microsoft Employee
    2026-04-12T15:29:21.52+00:00

    This issue resolved on this item. https://github.com/mlflow/mlflow/issues/21470

    The latest mlflow should have this resolved, however, it requires sometimes to be released under https://pypi.org/project/azureml-mlflow/#description

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.