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

graph: ghost node detection fix #2386

Merged
merged 1 commit into from
Aug 10, 2017

Conversation

oliver-sanders
Copy link
Member

Follow-on fix from #2346

This PR fixes the somewhat over-zealous detection of ghost nodes and handles the case that a task is defined but not used.

Detection of ghost-families has been removed as it is doesn't make sense without analysing the suite's triggers individually which is perhaps beyond the scope of cylc graph.

@oliver-sanders oliver-sanders added this to the next release milestone Aug 9, 2017
@oliver-sanders oliver-sanders self-assigned this Aug 9, 2017
Copy link
Member

@hjoliver hjoliver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, but ideally I think we should have ghost families. Wouldn't that just involve checking if all member tasks are ghosts - not just finding one ghost member - or am I missing something?

@oliver-sanders
Copy link
Member Author

oliver-sanders commented Aug 10, 2017

am I missing something?

The problem is that not all tasks in a family will necessarily run at a particular cycle point. For example try graphing this suite on master:

[scheduling]
    cycling mode = integer
    initial cycle point = 1
    [[dependencies]]
        [[[R/1/P2]]]
            graph = task_1
        [[[R/2/P2]]]
            graph = task_2
[runtime]
    [[HPC]]
    [[task_1, task_2]]
        inherit = HPC

cylc graph gets its information from cylc.config.get_graph_raw which performs family substitution so by the time the data gets to cylc_xdot it is not possible to tell which tasks a family represents (without performing a second get_graph_raw call?).

@hjoliver
Copy link
Member

OK got it.

@hjoliver hjoliver merged commit 976f75b into cylc:master Aug 10, 2017
@oliver-sanders oliver-sanders deleted the graph-ghost-node-fix branch December 14, 2017 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants