Nimesh Kumar
04/24/2024, 8:33 AMimport requests
import json
url = "<https://IP>:port/api/work_queues/"
payload = json.dumps({
"name": "algo-402-4563",
"description": "This work queue is for algorithm 402 and project ID 4563",
"is_paused": False,
"concurrency_limit": 10
})
headers = {
'Authorization': 'Basic bmltZXNoLnBybmltZXNoLnByZWZlY3Q='
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Hi Everyone, i have created work-queue using the above code which is created successfuly, but it is in unhealty state,
is there way to make the queue healthy from the code itself.
The goal is to create a queue only when it requires, so thought process was to create it with an API but it is in unhealthy state.