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

dummy mode: subtract err-script from jobs #5820

Open
oliver-sanders opened this issue Nov 14, 2023 · 6 comments · May be fixed by #6039
Open

dummy mode: subtract err-script from jobs #5820

oliver-sanders opened this issue Nov 14, 2023 · 6 comments · May be fixed by #6039
Assignees
Labels
bug Something is wrong :( small
Milestone

Comments

@oliver-sanders
Copy link
Member

In dummy mode, we remove any configured script items, except err-script for some reason.

See #5721 (comment)

@oliver-sanders oliver-sanders added bug Something is wrong :( small labels Nov 14, 2023
@oliver-sanders oliver-sanders added this to the cylc-8.x milestone Nov 14, 2023
@oliver-sanders
Copy link
Member Author

@wxtim you might want to see if you can cross this off post skip-mode work, or have already resolved it as part of recent sim-mode work.

@wxtim
Copy link
Member

wxtim commented May 15, 2024

This makes sense because:

  • It's so under-utilized that we can probably do what we like.
  • Any use case was probably from when dummy meant dummy-remote, not dummy-local.

But...

It makes sense to me that the user of dummy mode might want to keep the effect of the dummy script, especially if the error script is altering the workflow. If they were wanting to test a cylc reset or a cylc message or the state of the workflow.

Happy to remove it, but wanted to check that you've considered the reasons.

@oliver-sanders
Copy link
Member Author

Dummy mode is supposed to run a dummy job commenting out all script. Given that dummy jobs should not fail (because they don't run anything), the inclusion of err-script should be symptomless (i.e. you can't use it to alter the workflow because it should never be called). The omission of err-script was an accident, likely because err-script was the most recently added of the bunch. Note that post-script (which is omitted) is essentially the "success" opposite of err-script.

@wxtim
Copy link
Member

wxtim commented May 15, 2024

I will do this.

dummy jobs should not fail

Dummy jobs will currently fail if you set [simulation]fail cycle points = all.

evidence:

        err-script = 'echo "Hello, this is the exit script"'
        [[[simulation]]]
            default run length = "PT0S"
            fail cycle points = "all"
> cylc vip .
> cylc log new.buck/runN//1654/foo/ -f e
(dummy job fail)
Hello, this is the exit script
2024-05-15T11:35:58+01:00 CRITICAL - failed/ERR

@oliver-sanders
Copy link
Member Author

Dummy jobs will currently fail if you set [simulation]fail cycle points = all.

🤮

Hmm, dummy mode may require a rethink, or a deletion (see #5961).

@wxtim wxtim linked a pull request Aug 12, 2024 that will close this issue
8 tasks
@wxtim
Copy link
Member

wxtim commented Aug 12, 2024

Also missing exit-script too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :( small
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants