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

sim mode: traceback if execution retries and submission retrys unset #5935

Closed
wxtim opened this issue Jan 23, 2024 · 6 comments
Closed

sim mode: traceback if execution retries and submission retrys unset #5935

wxtim opened this issue Jan 23, 2024 · 6 comments
Assignees
Labels
bug Something is wrong :(
Milestone

Comments

@wxtim
Copy link
Member

wxtim commented Jan 23, 2024

Description

You can get traceback when simulating execution retries if you haven't set submission retries.

How to replicate

mkdir -p ~/cylc-src/bugs/5935
cd ~/cylc-src/bugs/5935

cat > flow.cylc <<__HERE__
[scheduling]
    initial cycle point = 1100
    [[graph]]
        R1 = foo

[runtime]
    [[foo]]
        execution retry delays = 'PT3S'
        [[[simulation]]]
            fail try 1 only = true
            fail cycle points = all
__HERE__

cylc vip --mode simulation --no-detach

Cause

The setting submission retry delay has no default. This means that in TaskJobManager.set_retry_timers the following code will fail unless the user has set submission retry delay:

        submit_delays = (
            rtconfig['submission retry delays']
            or itask.platform['submission retry delays']
        )

A possible second bug

I have found that after fixing this bug there is something wrong with the task_events_mgr, causing an endless loop of new job submissions:

INFO     cylc:task_proxy.py:482 [1348/foo waiting job:01 flows:1] => waiting(queued)
INFO     cylc:task_proxy.py:482 [1348/foo waiting(queued) job:01 flows:1] => waiting
WARNING  cylc:task_events_mgr.py:808 [1348/foo waiting job:02 flows:1] (polled-ignored)submitted at 2024-01-26T09:19:42Z
INFO     cylc:task_proxy.py:482 [1348/foo waiting job:02 flows:1] => waiting(queued)
INFO     cylc:task_proxy.py:482 [1348/foo waiting(queued) job:02 flows:1] => waiting
WARNING  cylc:task_events_mgr.py:808 [1348/foo waiting job:03 flows:1] (polled-ignored)submitted at 2024-01-26T09:19:43Z
INFO     cylc:task_proxy.py:482 [1348/foo waiting job:03 flows:1] => waiting(queued)
INFO     cylc:task_proxy.py:482 [1348/foo waiting(queued) job:03 flows:1] => waiting
....

Other questions

Why does this only affect simulation mode?

@wxtim wxtim added the bug Something is wrong :( label Jan 23, 2024
@wxtim wxtim self-assigned this Jan 23, 2024
@wxtim wxtim added this to the cylc-8.3.0 milestone Jan 23, 2024
@wxtim
Copy link
Member Author

wxtim commented Mar 4, 2024

I'm putting this off until the merger of #5721 changing the way sim mode works almost entirely.

@hjoliver
Copy link
Member

Sounds like this can go back to 8.4 then...

@hjoliver hjoliver modified the milestones: cylc-8.3.0, cylc-8.4.0 Mar 14, 2024
@MetRonnie
Copy link
Member

Closed by #5721?

@wxtim
Copy link
Member Author

wxtim commented Mar 14, 2024

Closed by #5721?

I think probably for master, but not for 8.2.x. Needs double checking on both anyway.

@MetRonnie
Copy link
Member

Oh looks like #5927 was to fix this on 8.2.x, but was closed?

@wxtim
Copy link
Member Author

wxtim commented Mar 19, 2024

So I think that in the end my decision (with Oliver's approval) was as follows:

Therefore

  • I double check that my changes fix this bug on master.
  • We add a "wontfix" to 8.2.x.
  • Close the issue.

@wxtim wxtim added the wontfix label Mar 19, 2024
@wxtim wxtim closed this as completed Mar 19, 2024
@MetRonnie MetRonnie modified the milestones: cylc-8.4.0, cylc-8.3.0 Mar 19, 2024
@MetRonnie MetRonnie removed the wontfix label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

No branches or pull requests

3 participants