pipeline.py 366 B

123456789101112131415
  1. from __future__ import annotations
  2. from pydantic import BaseModel, Field
  3. class CreatePipelineRunBody(BaseModel):
  4. biz_dt: str | None = Field(default=None, pattern=r"^\d{8}$")
  5. reason: str | None = Field(default=None, max_length=2000)
  6. dry_run: bool = False
  7. class PipelineRunActionResponse(BaseModel):
  8. accepted: bool
  9. run_id: str
  10. status: str