Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The logic still wasn't quite right for optional datasets. The assumption is that if a dataset is optional, a user should still put an entry in the job submission with an empty value. This way, if a step is waiting for an input AND there is no entry yet in the execution dataset map, then we know the step that produces it is still running/queued. If the step fails, then there will be an entry and the engine should handle this case and let the step waiting for the input run since allowNull is ok.
The problem with the previous logic was if a step was running/queued/waiting and an output is connected to an optional input, there was no entry yet, allowNull let the next step proceed and that's not right. The next step expected an entry and caused a NPE because there should be "something" in the dataset map if the step that produces it finished/failed or if the user submitted the job and was not setting and input for that.
TLDR:
The logic now is a user must set an empty input for optional datasets if a step's output is not connected to the input for a step. This way the engine knows if it should keep waiting.