Skip to content

Commit

Permalink
master: add required params for sample index, #TASK-6219
Browse files Browse the repository at this point in the history
  • Loading branch information
pfurio committed Feb 24, 2025
1 parent d9c2655 commit 5cf2620
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ private void checkPendingChore(OperationChore operationChore, Project project, S
paramsMap = new HashMap<>();
}
paramsMap.put(ParamConstants.PROJECT_PARAM, project.getFqn());
operationChore.addSpecificParams(paramsMap);
catalogManager.getJobManager().submit(studyFqns.get(0), toolId, Enums.Priority.HIGH, paramsMap, null,
generateJobDescription(config, operationChore, attributes), null,
Collections.singletonList(TAG), null, null, null, attributes, ownerToken);
Expand Down Expand Up @@ -223,6 +224,7 @@ private void checkPendingChore(OperationChore operationChore, Project project, S
paramsMap = new HashMap<>();
}
paramsMap.put(ParamConstants.STUDY_PARAM, study.getFqn());
operationChore.addSpecificParams(paramsMap);
catalogManager.getJobManager().submit(study.getFqn(), toolId, Enums.Priority.HIGH, paramsMap, null,
generateJobDescription(config, operationChore, attributes), null,
Collections.singletonList(TAG), null, null, null, attributes, ownerToken);
Expand Down Expand Up @@ -251,6 +253,9 @@ private interface OperationChore {

OperationExecutionConfig getConfig();

default void addSpecificParams(Map<String, Object> params) {
}

}

private static class VariantSecondarySampleIndexOperationChore implements OperationChore {
Expand Down Expand Up @@ -306,6 +311,12 @@ public List<String> dependantTools() {
public OperationExecutionConfig getConfig() {
return operationConfig;
}

@Override
public void addSpecificParams(Map<String, Object> params) {
params.put("sample", Collections.singletonList(ParamConstants.ALL));
params.put("familyIndex", true);
}
}

private static class VariantSecondaryAnnotationIndexOperationChore implements OperationChore {
Expand Down

0 comments on commit 5cf2620

Please sign in to comment.