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

data store: tasks stuck in n-window #5707

Open
oliver-sanders opened this issue Aug 25, 2023 · 0 comments
Open

data store: tasks stuck in n-window #5707

oliver-sanders opened this issue Aug 25, 2023 · 0 comments
Labels
Milestone

Comments

@oliver-sanders
Copy link
Member

An obscure bug where old tasks aren't being removed from the scheduler data store after drifting out of the n=1 window, reproduced by Dave.

There is a reproducible example for this, but it's rather odd and very sensitive to change.

This workflow will restart itself in cycle 2, then pause itself in the last cycle. The task 1/c will remain in the data store incorrectly.

You can observe this in cylc tui (which uses a global update, no deltas) or cylc dump.

[scheduling]
    cycling mode = integer
    initial cycle point = 1
    final cycle point   = 6
    [[graph]]
        P1 = """
                b[-P1] => a => b => c => d => e
                e[-P1] => e
            """
[runtime]
    [[a, b, c, e]]
        script = sleep 5
    [[b]]
        script = """
            if [[ $CYLC_WORKFLOW_FINAL_CYCLE_POINT == $CYLC_TASK_CYCLE_POINT ]]; then
                cylc pause $CYLC_SUITE_NAME
            elif [[ $CYLC_TASK_CYCLE_POINT == "2" ]]; then
              sleep 15
              cylc stop --now $CYLC_SUITE_NAME
              sleep 15
              cylc play --host=localhost $CYLC_SUITE_NAME
            else
              sleep 30
            fi
        """
    [[d]]
        script=sleep 20

The good news is that I have not been able to reproduce this on #5660 which indicates that the issue is within the housekeeping of the increment_graph_window algorithm which is good news as a fix is on the horizon.

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

No branches or pull requests

1 participant