Fixed status control

This commit is contained in:
Taylor AI 2026-01-09 01:28:42 +05:00
parent 5d449006f6
commit 5320a6445f

View File

@ -4,32 +4,31 @@ import { Axios } from "axios";
import { promises as fs } from "fs"; import { promises as fs } from "fs";
import { z } from "zod"; import { z } from "zod";
// const { vmOrchestrationStatusUpdateUrl } = z const { vmOrchestrationStatusUpdateUrl } = z
// .object({ .object({
// vmOrchestrationStatusUpdateUrl: z.string(), vmOrchestrationStatusUpdateUrl: z.string(),
// }) })
// .parse({ .parse({
// vmOrchestrationStatusUpdateUrl: vmOrchestrationStatusUpdateUrl:
// process.env.TAYLORDB_VM_ORCHESTRATION_STATUS_UPDATE_URL, process.env.TAYLORDB_VM_ORCHESTRATION_STATUS_UPDATE_URL,
// }); });
// const axios = new Axios({ const axios = new Axios({
// baseURL: vmOrchestrationStatusUpdateUrl, baseURL: vmOrchestrationStatusUpdateUrl,
// }); });
const updateAppStatus = async (status: "Errored" | "Active" | "Pending") => { const updateAppStatus = async (status: "Errored" | "Active" | "Pending") => {
console.log(status); await axios.put(
// await axios.put( "/",
// "/", JSON.stringify({
// JSON.stringify({ status,
// status, }),
// }), {
// { headers: {
// headers: { "Content-Type": "application/json",
// "Content-Type": "application/json", },
// }, }
// } );
// );
}; };
const sessionRetries: Record<string, number> = {}; const sessionRetries: Record<string, number> = {};