Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azure-ai-ml unable to download logs and outputs from Job #39325

Open
sharmuz opened this issue Jan 21, 2025 · 1 comment
Open

azure-ai-ml unable to download logs and outputs from Job #39325

sharmuz opened this issue Jan 21, 2025 · 1 comment
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Machine Learning needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@sharmuz
Copy link

sharmuz commented Jan 21, 2025

  • Package Name: azure-ai-ml
  • Package Version: 1.24.0
  • Operating System: macOS Sequoia 15.2 (24C101)
  • Python Version: 3.10.15

Describe the bug
I am unable to download the logs and outputs saved within a completed Job in Azure ML. Despite both the Job class and JobOperations class providing the functionality, neither seems to work.

I can confirm the files exist in both the Azure ML studio portal and the associated blob storage account container.

To Reproduce
Steps to reproduce the behavior:

  1. Submit a job to Azure ML, for which files will be saved to logs/ and outputs/
  2. Wait for job to complete
  3. Attempt to run the following:
from azure.ai.ml import MLClient

ml_client = MLClient(...)
job_name = "curious_badger_124abc"

# Option 1: via JobOperations
ml_client.jobs.download(
    name=job_name,
    download_path=".",
    all=True,  # also fails with all=False and output_name="my_file.txt"
)

# Option 2: via Job
my_job = ml_client.jobs.get(name=job_name)
print(my_job.log_files)

Option 1 raises a ServiceRequestError
Option 2 returns None

Expected behavior
Option 1 should download logs and outputs to local machine.
Option 2 should return a dict of file names and URLs.

Additional context
Looking through the associated code for azure-ai-ml I found this comment - is getting a job's logs/outputs via the python SDK meant to be possible?

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Machine Learning needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. labels Jan 21, 2025
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-ml-sdk @azureml-github.

@achauhan-scc achauhan-scc self-assigned this Jan 21, 2025
@catalinaperalta catalinaperalta added bug This issue requires a change to an existing behavior in the product in order to be resolved. and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Machine Learning needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants