Skip to content
Snippets Groups Projects

Add a "simple mode" with only the recommended worker version for a worker

Merged ml bonhomme requested to merge wv-rec into release-1.7.2
All threads resolved!
Files
5
+ 3
0
@@ -34,6 +34,9 @@ export const listWorkerVersions = unique(async (workerId: UUID, params: WorkerVe
// Retrieve a worker version
export const retrieveWorkerVersion = unique(async (id: UUID): Promise<WorkerVersion> => (await axios.get(`/workers/versions/${id}/`)).data)
// Retrieve the recommended worker version for a worker
export const retrieveRecommendedWorkerVersion = unique(async(workerId: UUID): Promise<WorkerVersion> => (await axios.get(`/workers/${workerId}/versions/recommended/`)).data)
// Retrieve a worker
export const retrieveWorker = unique(async (id: UUID): Promise<Worker> => (await axios.get(`/workers/${id}/`)).data)
Loading