Skip to content

traceback: no tasks #7136

@oliver-sanders

Description

@oliver-sanders

This example validates:

[scheduling]
    [[graph]]
        R1 = """
            # no comment
        """

But if you tried to run it:

data_store_mgr.py", line 841, in generate_definition_elements
        workflow.tree_depth = max([
                              ^^^^^
    ValueError: max() iterable argument is empty

Yikes!

Ideally:

  • Cylc validate would catch the empty graph and fail.
  • The data store would be robust against a workflow with no tasks.

Metadata

Metadata

Assignees

Labels

bugSomething is wrong :(

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions