Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Pushikoo_Pushikoo /backend /src /pushikoo /model /flow.py
| from datetime import datetime | |
| from enum import StrEnum | |
| from uuid import UUID | |
| from pydantic import BaseModel | |
| class FlowCreate(BaseModel): | |
| name: str = "" | |
| nodes: list[UUID] | |
| class FlowUpdate(BaseModel): | |
| name: str | None = None | |
| nodes: list[UUID] | None = None | |
| class FlowListFilter(BaseModel): | |
| getter_instance_id: UUID | None = None # filter by first node (= getter) | |
| limit: int | None = None | |
| offset: int | None = None | |
| class Flow(BaseModel): | |
| id: UUID | |
| name: str | |
| nodes: list[UUID] | |
| class FlowInstanceStatus(StrEnum): | |
| WAITING = "waiting" | |
| RUNNING = "running" | |
| COMPLETED = "completed" | |
| FAILED = "failed" | |
| CANCELLED = "cancelled" | |
| class FlowInstanceOrder(StrEnum): | |
| CREATED_AT_DESC = "created_at_desc" | |
| CREATED_AT_ASC = "created_at_asc" | |
| class FlowInstanceListFilter(BaseModel): | |
| flow_id: UUID | None = None | |
| status: FlowInstanceStatus | None = None | |
| limit: int | None = None | |
| offset: int | None = None | |
| order: FlowInstanceOrder = FlowInstanceOrder.CREATED_AT_DESC | |
| class FlowInstance(BaseModel): | |
| id: UUID | |
| flow_id: UUID | |
| status: FlowInstanceStatus | |
| created_at: datetime | |
| class FlowExecuteRequest(BaseModel): | |
| """Request body for executing a flow with optional node inclusions.""" | |
| include_nodes: list[UUID] | None = None # List of node IDs to run (None = run all) | |
| class FlowNodeExecutionStatus(StrEnum): | |
| SUCCESS = "success" | |
| FAILED = "failed" | |
| RUNNING = "running" | |
| class FlowNodeExecution(BaseModel): | |
| """Execution details for a single node in a flow instance.""" | |
| id: UUID | |
| flow_instance_id: UUID | |
| adapter_instance_id: UUID | |
| node_index: int | |
| status: FlowNodeExecutionStatus | |
| started_at: datetime | |
| finished_at: datetime | None | |
| message: str | None # Getter: message IDs; others: empty | |
| error_message: str | None | |
| items_in: int | |
| items_out: int | |
| class FlowInstanceDetail(BaseModel): | |
| """FlowInstance with execution details for each node.""" | |
| id: UUID | |
| flow_id: UUID | |
| status: FlowInstanceStatus | |
| created_at: datetime | |
| node_executions: list[FlowNodeExecution] | |
Xet Storage Details
- Size:
- 2.13 kB
- Xet hash:
- c345899ae6de04ec7f80f014e3e1ea30c9fd7fa15b87d6f3238011ff231fe72d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.