tessl install tessl/pypi-luigi@2.8.0Python workflow management framework for building complex pipelines of batch jobs with dependency resolution and task scheduling.
Agent Success
Agent success rate when using this tile
72%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.31x
Baseline
Agent success rate without this tile
55%
Build an orchestrated pipeline that processes a list of asset identifiers by fetching metadata, running a resource-intensive transcode, and packaging a manifest. The heavy stage must consume a named accelerator resource whose available slots are provided at runtime. Rely on the dependency's resource-aware scheduling to enforce limits; do not gate concurrency with manual semaphores or custom queues.
@generates
from typing import Any, Dict, List, Sequence, TypedDict
class TimelineEntry(TypedDict):
item: str
stage: str
start: float
end: float
class RunReport(TypedDict):
outputs: List[str]
timeline: List[TimelineEntry]
runtime_seconds: float
def run_resource_limited_pipeline(
item_ids: Sequence[str],
resource_limits: Dict[str, int] | None = None,
worker_count: int = 2
) -> RunReport:
"""
Runs the orchestrated pipeline, using the dependency's resource-aware scheduling to bound concurrency of the accelerator-heavy stage.
Timeline entries must cover the resource-bound stage (named "transcode") for each item using monotonic seconds, and each accelerator-bound unit of work should simulate at least ~0.15 seconds of active time so that overlap/serialization can be measured in tests.
"""Workflow orchestration with task resources, dependency resolution, and scheduler-enforced resource limits. @satisfied-by