fix: comfy manager error, bump to v2.3.6
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "comfyui-deploy"
|
||||
description = "Open source comfyui deployment platform, a vercel for generative workflow infra."
|
||||
version = "2.3.5"
|
||||
version = "2.3.6"
|
||||
license = { file = "LICENSE" }
|
||||
dependencies = ["aiofiles", "pydantic", "opencv-python", "imageio-ffmpeg", "tabulate", "brotli"]
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@ import {
|
||||
} from "./workflow-list.js";
|
||||
import { initializeMachineManager } from "./machine-manager.js";
|
||||
import { initializeModelManager } from "./model-manager.js";
|
||||
import { fetchSnapshotSimple } from "./snapshot-utils.js";
|
||||
|
||||
const styles = `
|
||||
.comfydeploy-menu-item {
|
||||
@@ -1355,19 +1354,6 @@ async function deployWorkflow() {
|
||||
if (endpoint.endsWith("/")) {
|
||||
endpoint = endpoint.slice(0, -1);
|
||||
}
|
||||
loadingDialog.showLoading("Generating snapshot");
|
||||
|
||||
const snapshot = await fetchSnapshotSimple();
|
||||
console.log(snapshot);
|
||||
loadingDialog.close();
|
||||
|
||||
if (!snapshot) {
|
||||
showError(
|
||||
"Error when deploying",
|
||||
"Unable to generate snapshot, please install ComfyUI Manager"
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
const title = deploy.querySelector("#button-title");
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Machine Manager Script
|
||||
// Handles local storage machine ID functionality
|
||||
|
||||
import { fetchSnapshot, fetchSnapshotSimple } from "./snapshot-utils.js";
|
||||
import { fetchSnapshot } from "./snapshot-utils.js";
|
||||
|
||||
const MACHINE_STORAGE_KEY = "comfy_deploy_machine_id";
|
||||
|
||||
|
||||
@@ -66,17 +66,3 @@ export async function fetchSnapshot(getDataFn = null) {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Simple snapshot fetch without ComfyUI version fallback
|
||||
* Use this when you don't need the ComfyUI version fallback logic
|
||||
*
|
||||
* @returns {Promise<Object>} - The snapshot data as-is
|
||||
*/
|
||||
export async function fetchSnapshotSimple() {
|
||||
const response = await fetch("/snapshot/get_current");
|
||||
if (!response.ok) {
|
||||
throw new Error(`Snapshot fetch failed: ${response.status}`);
|
||||
}
|
||||
return response.json();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user