Skip to content

Commit

Permalink
Update HyperQueue CLI option (#5730) [BREAKING]
Browse files Browse the repository at this point in the history

Signed-off-by: Mattis Knulst <51265018+chaetognatha@users.noreply.github.com>
Signed-off-by: chaetognatha <mattis.knulst@med.lu.se>
Co-authored-by: chaetognatha <mattis.knulst@med.lu.se>
  • Loading branch information
chaetognatha and chaetognatha authored Jan 31, 2025
1 parent 0a29236 commit b582cb5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/executor.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ Resource requests and other job characteristics can be controlled via the follow
- {ref}`process-memory`
- {ref}`process-time`

:::{note} As of Nextflow version 24.06.0-edge, HyperQueue version 0.17.0 or later is required.
:::{note} HyperQueue version 0.20.0 or later is required.
:::

(k8s-executor)=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class HyperQueueExecutor extends AbstractGridExecutor {
protected List<String> getDirectives(TaskRun task, List<String> result) {

result << '--name' << getJobNameFor(task)
result << '--log' << quote(task.workDir.resolve(TaskRun.CMD_LOG))
result << '--stream' << quote(task.workDir.resolve(TaskRun.CMD_LOG))
result << '--cwd' << quote(task.workDir)

// No enforcement, Hq just makes sure that the allocated value is below the limit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class HyperQueueExecutorTest extends Specification {
then:
executor.getHeaders(task) == '''
#HQ --name nf-task-1
#HQ --log /work/dir/.command.log
#HQ --stream /work/dir/.command.log
#HQ --cwd /work/dir
'''
.stripIndent().leftTrim()
Expand All @@ -131,7 +131,7 @@ class HyperQueueExecutorTest extends Specification {
then:
executor.getHeaders(task) == '''
#HQ --name nf-task-1
#HQ --log /work/dir/.command.log
#HQ --stream /work/dir/.command.log
#HQ --cwd /work/dir
#HQ --resource mem=8192
#HQ --cpus 4
Expand Down

0 comments on commit b582cb5

Please sign in to comment.