Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.55k stars 2.77k forks source link

Adding new task with dependencies returns error #27859

Open krzysztofstepien-tomtom opened 1 year ago

krzysztofstepien-tomtom commented 1 year ago

Describe the bug Once i try to create new batch task that depends on another one, I am getting the following error:

Task with id `1111` failed due to client error - UnsupportedProperty::{'additional_properties': {}, 'lang': 'en-US', 'value': 'One of the properties specified in the request body is not supported.\nRequestId:...\nTime:...'}

When i remove ids from task_ids field and leave it empty, the script launches without any errors.

To Reproduce Steps to reproduce the behavior:

  1. Creating new task and appending it to the list. Then adding this collection to the batch client
    
    tasks = []
    job_id = 111
    tasks.append(batchmodels.TaskAddParameter(
      id=...,
      command_line=...,
      container_settings=....,
      user_identity=....,
      depends_on=batchmodels.TaskDependencies(
          task_ids=["task_0"]))
    )
    batch_client.task.add_collection(job_id, tasks)
azure-sdk commented 1 year ago

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Batch:0.43720233,Azure.Identity:0.066257305,Cosmos:0.05682189'

kashifkhan commented 1 year ago

Thanks for the feedback @krzysztofstepien-tomtom . We will investigate asap.

ghost commented 1 year ago

Thank you for your feedback. This has been routed to the support team for assistance.

ghost commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @mksuni, @bgklein, @mscurrell, @cRui861, @paterasMSFT, @gingi, @dpwatrous.

Issue Details
- **azure-batch**: - **13.0.0**: - **macOS 11.6**: - **Python 3.10.8**: **Describe the bug** Once i try to create new batch task that depends on another one, I am getting the following error: ``` Task with id `1111` failed due to client error - UnsupportedProperty::{'additional_properties': {}, 'lang': 'en-US', 'value': 'One of the properties specified in the request body is not supported.\nRequestId:...\nTime:...'} ``` When i remove ids from ```task_ids``` field and leave it empty, the script launches without any errors. **To Reproduce** Steps to reproduce the behavior: 1. Creating new task and appending it to the list. Then adding this collection to the batch client ``` tasks = [] job_id = 111 tasks.append(batchmodels.TaskAddParameter( id=..., command_line=..., container_settings=...., user_identity=...., depends_on=batchmodels.TaskDependencies( task_ids=["task_0"])) ) batch_client.task.add_collection(job_id, tasks) ```
Author: krzysztofstepien-tomtom
Assignees: cRui861, paterasMSFT, SaurabhSharma-MSFT
Labels: `question`, `Batch`, `Service Attention`, `customer-reported`
Milestone: -
andykitch commented 2 months ago

Any update on this please?