Resume ML Skill Using AI Center API

How to resume ML skill using AI Center API?

Issue Description: For Example when the below parameters are sent in the Resume API

https://cloud.uipath.com/halwanibrothers/Development/aifabric_/ai-deployer/v1/mlskills/{{mlskillid}}?

updateType=RESUME{

"processor": "CPU",

"deploymentsRequired": 1,

"gpuRequired": 0,

"publicSkill": true,

"autoUpdate": true,

"inactivityPeriodInDays": -1,

"replicas": 1,

"requestedCPU": 1.0,

"requestedMemory": 4

}

The request gets through successfully, Machine Learning skill gets available as public, the auto-update setting gets enabled, the inactivity period also sets to NEVER as per the passed parameters. However, the infra settings does not come as expected and gets passed as : "requestedCPU": 0.0, "requestedMemory": 0.

Resolution:

  • Use requestCPU and requestMemory instead of requested.
  • Also, pass limitCPU and limitMemory in the body.
  • If not passed, the below error might be noticed,

{

"respCode": 60011,

"respMsg": "Resource limits configured incorrectly. Configure both values and make sure limit is greater than or equal to requested values"

}

Suggestion: Request = Limit