Aggiorna la logica di gestione degli stati di ingestione per includere 'INGESTING' e 'INGESTION_QUEUE'
This commit is contained in:
@@ -319,13 +319,13 @@ const confirmDeleteFromVectorStore = (id) => {
|
|||||||
|
|
||||||
//ingestion
|
//ingestion
|
||||||
const startIndividualngestion = (id) => {
|
const startIndividualngestion = (id) => {
|
||||||
toast.add({ severity: 'info', summary: 'Info', detail: 'Starting Ingestion', life: 3000 });
|
toast.add({ severity: 'info', summary: 'Info', detail: 'Starting Ingestion...', life: 3000 });
|
||||||
fe_status = "INGESTION_QUEUE"
|
fe_status.value = "INGESTION_QUEUE"
|
||||||
axios.get(`/test/ingest_document/${id}`)
|
axios.get(`/test/ingest_document/${id}`)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.data.status == "OK") {
|
if (response.data.status == "OK") {
|
||||||
toast.add({ severity: 'success', summary: 'Success', detail: 'Document ingestion started...', life: 3000 });
|
toast.add({ severity: 'success', summary: 'Success', detail: 'Document ingestion started...', life: 3000 });
|
||||||
fe_status = "INGESTION_QUEUE"
|
fe_status.value = "INGESTION_QUEUE"
|
||||||
}
|
}
|
||||||
if (response.data.status == "ERROR") {
|
if (response.data.status == "ERROR") {
|
||||||
toast.add({ severity: 'error', summary: 'Success', detail: 'Error ingesting document:' + response.data.message, life: 3000 });
|
toast.add({ severity: 'error', summary: 'Success', detail: 'Error ingesting document:' + response.data.message, life: 3000 });
|
||||||
|
|||||||
Reference in New Issue
Block a user