Bopytex/bopytex/planner/fake_planner.py

10 lines
276 B
Python
Raw Permalink Normal View History

2022-04-10 04:45:10 +00:00
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}")
2022-04-10 04:45:10 +00:00
for i in range(options["quantity"])
]