cambios en datastage

This commit is contained in:
2025-08-21 12:11:50 -06:00
parent 6eea8c8ac1
commit da454447a9
3 changed files with 130 additions and 10 deletions

View File

@@ -1,3 +1,10 @@
// Consultar el estado de un task por task_id
export async function fetchTaskStatus(task_id) {
const url = `${import.meta.env.VITE_EFC_API_URL}/datastage/datastages/task-status/?task_id=${encodeURIComponent(task_id)}`;
const res = await getWithAuth(url);
if (!res.ok) throw new Error('Error al consultar el estado del task');
return res.json();
}
import.meta.env;
import { getWithAuth, postWithAuth, patchWithAuth, deleteWithAuth } from '../fetchWithAuth';