Consider the current stage when applying Action::Complete to the vqueue meta #4071
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.
Include VO/workflow name in vqueue id generation
Since we calculate the partition key for VOs and workflows only from the
key, we need to include the VO/workflow name when creating the VQueueId
(for generating an instance id which does not conflict with other VOs/
workflows). This is a bit unfortunate :-(
Consider the current stage when applying Action::Complete to the vqueue meta
When applying Action::Complete to the vqueue meta we need to consider what's the current stage
to properly update the statistics and the metadata. Hence, we are now passing the stage instead of whether it was in the inbox or not because we need to handle
Stage::RunandStage::Parkdifferently.This PR is based on #4070.