Skip to content

Commit

Permalink
added --launch-container
Browse files Browse the repository at this point in the history
  • Loading branch information
munishchouhan committed Aug 21, 2024
1 parent f3e846e commit 10012d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/io/seqera/tower/cli/commands/LaunchCmd.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ public class LaunchCmd extends AbstractRootCmd {
@Option(names = {"-l", "--labels"}, split = ",", description = "Comma-separated list of labels for the pipeline.")
List<String> labels;

@Option(names = {"--launch-container"}, split = ",", description = "Container to be used to run the nextflow head job.")
List<String> launchContainer;

@ArgGroup(heading = "%nAdvanced options:%n", validate = false)
AdvancedOptions adv;

Expand Down Expand Up @@ -165,7 +168,8 @@ private WorkflowLaunchRequest updateLaunchRequest(WorkflowLaunchRequest base) th
.optimizationTargets(coalesce(adv().disableOptimization, false) ? null : base.getOptimizationTargets())
.labelIds(base.getLabelIds())
.headJobCpus(base.getHeadJobCpus())
.headJobMemoryMb(base.getHeadJobMemoryMb());
.headJobMemoryMb(base.getHeadJobMemoryMb()
.launchContainer(coalesce(launchContainer, base.getLaunchContainer())));
}

protected Response runTowerPipeline(Long wspId) throws ApiException, IOException {
Expand Down

0 comments on commit 10012d5

Please sign in to comment.