Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

624 B
Raw Blame
"""States returned for permanent deletion of a monthly workflow-run archive."""

from dataclasses import dataclass
from enum import StrEnum
from typing import Protocol


class WorkflowRunArchiveDeletionStatus(StrEnum):
    PENDING = "pending"
    PROCESSING = "processing"
    COMPLETED = "completed"
    FAILED = "failed"


@dataclass(frozen=True)
class WorkflowRunArchiveDeletionTask:
    year: int
    month: int
    status: WorkflowRunArchiveDeletionStatus
    error: str | None = None


class WorkflowRunArchiveDeletionDispatcher(Protocol):
    def __call__(self, *, tenant_id: str, year: int, month: int) -> None: ...