Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions datalab_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1910,6 +1910,7 @@ async def run_pipeline(
skip_cache: bool = False,
webhook_url: Optional[str] = None,
version: Optional[int] = None,
processing_location: Optional[str] = None,
max_polls: int = 1,
poll_interval: int = 1,
) -> PipelineExecution:
Expand All @@ -1926,6 +1927,7 @@ async def run_pipeline(
skip_cache: Skip executor cache
webhook_url: URL to POST when complete
version: Pipeline version to execute (0=draft, omit=active)
processing_location: Processing location override
max_polls: Maximum polling attempts after submission (default: 1)
poll_interval: Seconds between polls
"""
Expand All @@ -1942,6 +1944,8 @@ async def run_pipeline(
form_data.add_field("webhook_url", webhook_url)
if version is not None:
form_data.add_field("version", str(version))
if processing_location is not None:
form_data.add_field("processing_location", processing_location)

response = await self._submit_with_retry(
f"/api/v1/pipelines/{pipeline_id}/run", data=form_data
Expand Down Expand Up @@ -2043,6 +2047,7 @@ def _build_pipeline_execution(data: Dict[str, Any]) -> PipelineExecution:
finished_at=s.get("finished_at"),
error_message=s.get("error_message"),
checkpoint_id=s.get("checkpoint_id"),
source_step_type=s.get("source_step_type"),
)
for s in data.get("steps", [])
]
Expand Down Expand Up @@ -2800,6 +2805,7 @@ def run_pipeline(
skip_cache: bool = False,
webhook_url: Optional[str] = None,
version: Optional[int] = None,
processing_location: Optional[str] = None,
max_polls: int = 1,
poll_interval: int = 1,
) -> PipelineExecution:
Expand All @@ -2810,6 +2816,7 @@ def run_pipeline(
page_range=page_range, output_format=output_format,
run_evals=run_evals, skip_cache=skip_cache,
webhook_url=webhook_url, version=version,
processing_location=processing_location,
max_polls=max_polls, poll_interval=poll_interval,
)
)
Expand Down
3 changes: 2 additions & 1 deletion datalab_sdk/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ class ExtractionSchema:
class PipelineProcessor:
"""Configuration for a single processor within a pipeline"""

type: str # convert, extract, segment, custom
type: str # convert, extract, segment, custom, fill
settings: Dict[str, Any] = field(default_factory=dict)
custom_processor_id: Optional[str] = None # For custom steps (cp_XXXXX)
eval_rubric_id: Optional[int] = None
Expand Down Expand Up @@ -624,6 +624,7 @@ class PipelineExecutionStepResult:
finished_at: Optional[str] = None
error_message: Optional[str] = None
checkpoint_id: Optional[str] = None
source_step_type: Optional[str] = None # For eval steps: which step this evaluates


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading