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%
Create a two-stage daily workflow that fetches order data and writes an aggregate manifest. The workflow must expose typed parameters that appear as CLI flags (--source-dir, --process-date, --stores, --min-units) generated by the dependency and honor defaults pulled from an inventory.cfg config file when provided. CLI values must take precedence over config values.
inventory.cfg provided as the config file containing:
[InventorySnapshot]
source_dir=/data/orders
process_date=2024-03-02
stores=us,eusource_dir=/data/orders, process_date=2024-03-02, and stores=["us","eu"]. @test--process-date 2024-03-10 --stores apac --min-units 25 writes a manifest showing process_date=2024-03-10, stores=["apac"], and min_units=25, proving CLI values win over config. @test--process-date 2024-03-15 stores the date as ISO 2024-03-15, and invalid formats such as 15-03-2024 are rejected with a clear error. @testprocess_date, source_dir, and stores automatically from the aggregation stage (no manual argument plumbing), and the manifest echoes the values read from the upstream output. @test@generates
class LoadDailyOrders:
"""Fetches daily order data into a local target derived from the resolved parameters."""
def output(self): ...
def run(self): ...
class InventorySnapshot:
"""Aggregates fetched orders, filters by store list and minimum units, and writes a manifest capturing resolved parameters."""
def requires(self): ...
def output(self): ...
def run(self): ...
def main(argv: list[str] | None = None) -> int:
"""Entrypoint that exposes parameterized CLI/config integration for the workflow and returns a process-style status code."""Provides workflow orchestration with parameterized tasks, CLI flags, and config file resolution.