Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: irregular cycling #6272

Open
oliver-sanders opened this issue Jul 31, 2024 · 1 comment
Open

examples: irregular cycling #6272

oliver-sanders opened this issue Jul 31, 2024 · 1 comment
Labels
doc Documentation small
Milestone

Comments

@oliver-sanders
Copy link
Member

Document a use case we occasionally see at our site where a workflow must cycle over an irregular list of dates.

Illustrative example:

#!jinja2
{% set dates = ['2000-01-01', '2022-01-05', '2024-01-07', '2024-01-10'] %}

[scheduling]
  initial cycle point = 1000-01-01
  [[graph]]
    {% for date in dates %}
    R1/{{date}} = "task1"
    {% endfor %}

These workflows are often used for "case studies":

  • They may need to incorporate regular cycling.
  • They may need inter-cycle dependencies (use Jinja2 isodatetime to compute the cycle offset).
@oliver-sanders oliver-sanders added small doc Documentation labels Jul 31, 2024
@oliver-sanders oliver-sanders added this to the some-day milestone Jul 31, 2024
@wxtim
Copy link
Member

wxtim commented Jul 31, 2024

Not dissimilar to https://github.com/wxtim/workflows/blob/cylc-8/strange-parameters/flow.cylc which uses a custom prime number cycling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Documentation small
Projects
None yet
Development

No branches or pull requests

2 participants