skip _sis_runnable check when already finished #223
+10
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Via: #167 (comment)
See the corresponding discussion there for why I did this.
However, I'm not really sure that this is correct or wanted. I think this mostly makes a potential difference for jobs which have a custom
update
function and which might dynamically add some further dependencies (and maybe also dynamically register further outputs). Now, when such a job is finished, it might never call theupdate
, and then you will never get the full graph again. This is what I also want here, to have it faster, but there might be other cases where you would not want this?I'm also not totally sure about the
return_when_finished
default. But if this default would be None, then there are likely some places where this function is called with this default, and then it anyway would do the update and expand the graph, so that would not really work.I'm mostly leaving this PR open here for discussion.