mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-27 04:18:35 +02:00
Fix deletion status display + add celery util + fix seg faults (#615)
This commit is contained in:
@@ -37,11 +37,7 @@ export function StatusRow<ConnectorConfigType, ConnectorCredentialType>({
|
||||
}
|
||||
if (connector.disabled) {
|
||||
const deletionAttempt = connectorIndexingStatus.deletion_attempt;
|
||||
if (
|
||||
!deletionAttempt ||
|
||||
deletionAttempt.status === "not_started" ||
|
||||
deletionAttempt.status === "failed"
|
||||
) {
|
||||
if (!deletionAttempt || deletionAttempt.status === "FAILURE") {
|
||||
statusDisplay = <div className="text-red-700">Disabled</div>;
|
||||
} else {
|
||||
statusDisplay = <div className="text-red-700">Deleting...</div>;
|
||||
|
@@ -17,8 +17,8 @@ const SingleUseConnectorStatus = ({
|
||||
}) => {
|
||||
if (
|
||||
deletionAttempt &&
|
||||
(deletionAttempt.status === "in_progress" ||
|
||||
deletionAttempt.status === "not_started")
|
||||
(deletionAttempt.status === "PENDING" ||
|
||||
deletionAttempt.status === "STARTED")
|
||||
) {
|
||||
return <div className="text-red-500">Deleting...</div>;
|
||||
}
|
||||
|
@@ -33,6 +33,7 @@ export type ValidStatuses =
|
||||
| "failed"
|
||||
| "in_progress"
|
||||
| "not_started";
|
||||
export type TaskStatus = "PENDING" | "STARTED" | "SUCCESS" | "FAILURE";
|
||||
|
||||
export interface DocumentBoostStatus {
|
||||
document_id: string;
|
||||
@@ -244,9 +245,7 @@ export interface Document360CredentialJson {
|
||||
export interface DeletionAttemptSnapshot {
|
||||
connector_id: number;
|
||||
credential_id: number;
|
||||
status: ValidStatuses;
|
||||
error_msg?: string;
|
||||
num_docs_deleted: number;
|
||||
status: TaskStatus;
|
||||
}
|
||||
|
||||
// DOCUMENT SETS
|
||||
|
Reference in New Issue
Block a user