Skip to content

Commit

Permalink
fix: labels used
Browse files Browse the repository at this point in the history
Signed-off-by: axel7083 <[email protected]>
  • Loading branch information
axel7083 committed May 22, 2024
1 parent ebbe98e commit c6d5aac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/backend/src/managers/applicationManager.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,10 @@ describe('pod detection', async () => {
'ai-lab-model-id': 'model-id-1',
},
});
expect(podManager.findPodByLabelsValues).toHaveBeenCalledWith({
'ai-lab-recipe-id': 'recipe-id-1',
'ai-lab-model-id': 'model-id-1',
});
});

test('deleteApplication calls stopPod and removePod', async () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/managers/applicationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,8 @@ export class ApplicationManager extends Publisher<ApplicationState[]> implements

private async findPod(recipeId: string, modelId: string): Promise<PodInfo | undefined> {
return this.podManager.findPodByLabelsValues({
LABEL_RECIPE_ID: recipeId,
LABEL_MODEL_ID: modelId,
[LABEL_RECIPE_ID]: recipeId,
[LABEL_MODEL_ID]: modelId,
});
}

Expand Down

0 comments on commit c6d5aac

Please sign in to comment.