Bopytex/bopytex/planner/fake_planner.py

10 lines
276 B
Python

from bopytex.tasks import Task
def simple(options: dict) -> list[Task]:
"""Simple planner with options['quantity'] tasks and no dependencies"""
return [
Task("Do", args={"number": i}, deps=[], output=f"{i}")
for i in range(options["quantity"])
]