| 1 |
#!Jinja2 |
| 2 |
|
| 3 |
{% |
| 4 |
set DATES = [ |
| 5 |
'2000-01-01T00:00Z', |
| 6 |
'2000-01-01T06:00Z', |
| 7 |
'2000-03-05T12:00Z', |
| 8 |
'2000-05-28T13:36Z', |
| 9 |
'2001-01-05T23:24', |
| 10 |
'2002-04-30T04:20', |
| 11 |
] |
| 12 |
%} |
| 13 |
|
| 14 |
[meta] |
| 15 |
title = Irregular cycling example |
| 16 |
description = """ |
| 17 |
A workflow that runs a group of tasks on arbitrary dates. |
| 18 |
""" |
| 19 |
|
| 20 |
[scheduling] |
| 21 |
# start cycling at the first date |
| 22 |
initial cycle point = {{ DATES[0] }} |
| 23 |
[[graph]] |
| 24 |
# define the tasks you want to run on startup |
| 25 |
R1 = install |
| 26 |
|
| 27 |
{# loop over the list of dates #} |
| 28 |
{% for date in DATES %} |
| 29 |
# schedule the tasks to run at each date |
| 30 |
R1/{{ date }} = """ |
| 31 |
# NOTE: install[^] references the task "install" in the first cycle |
| 32 |
install[^] => prep => run_model => plot |
| 33 |
""" |
| 34 |
{% endfor %} |
| 35 |
|
| 36 |
[runtime] |
| 37 |
[[install]] |
| 38 |
[[prep]] |
| 39 |
[[run_model]] |
| 40 |
[[plot]] |