Skip to content

Commit

Permalink
Update flux job id regular expression (#5662) [ci fast]
Browse files Browse the repository at this point in the history

Signed-off-by: vsoch <[email protected]>
Co-authored-by: vsoch <[email protected]>
  • Loading branch information
vsoch and vsoch authored Jan 11, 2025
1 parent 9386082 commit 58a0b34
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022, Seqera Labs
* Copyright 2022-2025, Seqera Labs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -35,7 +35,7 @@ import nextflow.processor.TaskRun
@CompileStatic
class FluxExecutor extends AbstractGridExecutor {

static final private Pattern SUBMIT_REGEX = ~/(ƒ.+)/
static final private Pattern SUBMIT_REGEX = ~/((ƒ|f).+)/

/**
* Gets the directives to submit the specified task to the cluster for execution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ class FluxExecutorTest extends Specification {
exec.parseJobId('ƒ6nmtLVpBq') == 'ƒ6nmtLVpBq'
}

def testParseJobID() {

given:
def exec = [:] as FluxExecutor

expect:
exec.parseJobId('f6nmtLVpBq') == 'f6nmtLVpBq'
}

def testKill() {

given:
Expand Down

0 comments on commit 58a0b34

Please sign in to comment.