This commit is contained in:
tao.chen
2026-07-30 20:02:19 +08:00
parent c1e15758a3
commit ec53edbce5
23 changed files with 191 additions and 1085 deletions
+5 -1
View File
@@ -1,6 +1,6 @@
import datetime
import decimal
from typing import Optional
from typing import Literal, Optional
from sqlalchemy import DECIMAL, Index, Integer, JSON, String, Text, text
from sqlalchemy.dialects.mysql import BIGINT, CHAR, DATETIME, INTEGER, TINYINT
@@ -9,6 +9,10 @@ from sqlalchemy.orm import Mapped, mapped_column
from common.db.base import Base
TriggerType = Literal["manual", "cron", "api"]
FailurePolicy = Literal["stop", "continue"]
class Schedules(Base):
__tablename__ = "schedules"
__table_args__ = (
+4 -1
View File
@@ -1,3 +1,6 @@
"""Storage building blocks shared by backend and schedule services."""
from common.storage.client import StorageClient
from common.storage.rustfs import RustFSObjectStore
__all__ = ["RustFSObjectStore"]
__all__ = ["RustFSObjectStore", "StorageClient"]