Bopytex/bopytex/service.py

29 lines
506 B
Python
Executable File

#!/usr/bin/env python
# encoding: utf-8
"""
Producing then compiling templates
"""
from bopytex.scheduler import Scheduler
def orcherstrator(
options: dict,
planner,
dispatcher,
):
tasks = planner(options)
scheduler = Scheduler([options["template"]])
scheduler.append(tasks)
for task in scheduler.backlog():
yield from dispatcher(task)
# -----------------------------
# Reglages pour 'vim'
# vim:set autoindent expandtab tabstop=4 shiftwidth=4:
# cursor: 16 del