2013-09-27 18:09:38 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# encoding: utf-8
|
|
|
|
|
2017-04-16 08:36:27 +00:00
|
|
|
"""
|
|
|
|
Producing then compiling templates
|
|
|
|
"""
|
|
|
|
|
2022-04-09 14:18:56 +00:00
|
|
|
from bopytex.scheduler import Scheduler
|
2017-04-16 15:46:14 +00:00
|
|
|
|
2017-04-17 14:10:38 +00:00
|
|
|
|
2022-04-10 04:45:10 +00:00
|
|
|
def orcherstrator(
|
|
|
|
options: dict,
|
|
|
|
planner,
|
2022-04-10 12:37:19 +00:00
|
|
|
dispatcher,
|
2019-10-15 17:50:54 +00:00
|
|
|
):
|
2022-04-10 04:45:10 +00:00
|
|
|
tasks = planner(options)
|
2022-04-09 14:18:56 +00:00
|
|
|
|
2022-04-13 13:09:08 +00:00
|
|
|
scheduler = Scheduler(dispatcher, [options["template"]])
|
2022-04-09 14:18:56 +00:00
|
|
|
scheduler.append(tasks)
|
|
|
|
|
2022-04-13 13:09:08 +00:00
|
|
|
for message in scheduler.backlog():
|
|
|
|
yield message
|
2014-01-19 20:37:46 +00:00
|
|
|
|
2017-04-16 08:36:27 +00:00
|
|
|
|
2013-09-27 18:09:38 +00:00
|
|
|
# -----------------------------
|
|
|
|
# Reglages pour 'vim'
|
|
|
|
# vim:set autoindent expandtab tabstop=4 shiftwidth=4:
|
2017-04-16 08:36:27 +00:00
|
|
|
# cursor: 16 del
|