Order important for cylc suite

Hi,

I’m new to this, so please be kind!

I have been surprised to find that the order matters when defining a task.

In my suite.rc file:

[[welcome_task]]
    inherit = PLATFORM
    script = """
        echo starting welcome task now
    """
    [[[job]]]
        batch system = background

works, but

[[welcome_task]]
    inherit = PLATFORM
    [[[job]]]
        batch system = background
    script = """
        echo starting welcome task now
    """

does not work.

Is there some logic that I haven’t understood here?

One of my more experienced colleagues suggested that this might be a bug and I should report it here.

Hi, and welcome!

Looks to me like the script key is under the [[[job]]] section, which I don’t think is valid.

You can indent your script, but this is not used when Cylc is parsing it. See this part of the documentation

  • Indentation is optional but should be used for clarity.

Hope that helps
Bruno

2 Likes

Thanks.

That makes complete sense. I’ve been doing too much python so just looked at the indentation.

Morwenna

1 Like