-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update support for local TES executor with GA4GH TES Plugin #4608
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,6 +190,11 @@ class TesTaskHandler extends TaskHandler { | |
body.addInputsItem(inItem(scriptFile)) | ||
body.addInputsItem(inItem(wrapperFile)) | ||
|
||
Path remoteBinDir = executor.getRemoteBinDir() | ||
if (remoteBinDir) { | ||
body.addInputsItem(inItem(remoteBinDir, null, true)) | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is where each file in |
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated here to only pass the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Confirmed with @kellrott that passing a directory as a TES input is compatible with the schema (as long as all items in that directory are recursively added as TES inputs by the executor). |
||
// add task input files | ||
if(inputFile.exists()) body.addInputsItem(inItem(inputFile)) | ||
|
||
|
@@ -234,11 +239,12 @@ class TesTaskHandler extends TaskHandler { | |
return size != null ? ((double)size.bytes)/1073741824 : null | ||
} | ||
|
||
private TesInput inItem( Path realPath, String fileName = null) { | ||
private TesInput inItem( Path realPath, String fileName = null, boolean isBin = false) { | ||
def result = new TesInput() | ||
result.url = realPath.toUriString() | ||
result.path = fileName ? "$WORK_DIR/$fileName" : "$WORK_DIR/${realPath.getName()}" | ||
log.trace "[TES] Adding INPUT file: $result" | ||
result.path = isBin ? realPath : result.path | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will result in the bin directory being mounted in the container at the same path as Nextflow's main working directory. All other "non-bin" TES inputs will be mounted at |
||
return result | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line resolves an error we were encountering when attempting to run the
.command.run
file within the container: