refactor
This commit is contained in:
@@ -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__ = (
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user