Skip to content

Commit

Permalink
fix: restart not starting
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 72731dc commit f5feb14
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/backend/src/managers/applicationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ import type {
Webview,
HostConfig,
HealthConfig,
PodContainerInfo } from '@podman-desktop/api';
PodContainerInfo,
} from '@podman-desktop/api';
import type { AIConfig, AIConfigFile, ContainerConfig } from '../models/AIConfig';
import { parseYamlFile } from '../models/AIConfig';
import type { Task } from '@shared/src/models/ITask';
Expand Down Expand Up @@ -713,7 +714,15 @@ export class ApplicationManager extends Publisher<ApplicationState[]> implements
await this.deleteApplication(recipeId, modelId);
const recipe = this.catalogManager.getRecipeById(recipeId);
const model = this.catalogManager.getModelById(appPod.Labels[LABEL_MODEL_ID]);
await this.initApplication(recipe, model);

// init the recipe
const podInfo = await this.initApplication(recipe, model);

// start the pod
return this.runApplication(podInfo, {
'recipe-id': recipe.id,
'model-id': model.id,
});
}

async getApplicationPorts(recipeId: string, modelId: string): Promise<number[]> {
Expand Down

0 comments on commit f5feb14

Please sign in to comment.