cylc-ui icon indicating copy to clipboard operation
cylc-ui copied to clipboard

Should mean run time update for older tasks?

Open MetRonnie opened this issue 1 year ago • 1 comments

Description

If you have a task at 1 cycle whose run duration changes in subsequent cycles, the run time displayed for that task at that cycle will:

  • not update as long as it remains in the n-window
  • update if it leaves the n-window but then re-enters the n-window

Reproducible Example

Example of the former:

[scheduling]
    cycling mode = integer
    final cycle point = 3
    [[graph]]
        P1 = foo[-P1] => foo
        R1 = foo => long  # keeps 1/foo in the n-window
[runtime]
    [[foo]]
        script = """
            sleep "$(( $CYLC_TASK_CYCLE_POINT * $CYLC_TASK_SUBMIT_NUMBER ))"
            if [[ "$CYLC_TASK_CYCLE_POINT" == "3" ]]; then
                cylc trigger "${CYLC_WORKFLOW_ID}//2/foo" --flow=new
            fi
        """
    [[long]]
        script = sleep 600

Expected Behaviour?

MetRonnie avatar Jun 12 '23 13:06 MetRonnie

Ideally this would update, however, this is extremely low priority.

IMO not updating is ok as new tasks will appear with the updated time, and the analysis view is the go to place for this info.

oliver-sanders avatar Jul 25 '23 11:07 oliver-sanders