Skip to content

Commit

Permalink
[GH-91] default file stage in strategy to copy
Browse files Browse the repository at this point in the history
As title.  If scratch is not specified, default to true and set the
stage in strategy to copy to avoid symbolic link between local
filesystem and s3fs.
  • Loading branch information
jealous committed Sep 11, 2024
1 parent c172b00 commit 880263f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ class FloatGridExecutor extends AbstractGridExecutor {

protected BashWrapperBuilder createBashWrapperBuilder(TaskRun task) {
final bean = new TaskBean(task)
if (bean.scratch == null) {
// default scratch to true
bean.scratch = true
bean.stageInMode = 'copy'
}
final strategy = new FloatFileCopyStrategy(floatConf, bean)
// creates the wrapper script
final builder = new BashWrapperBuilder(bean, strategy)
if (builder.scratch == null) {
// default scratch to true
builder.scratch = true
builder.stageInMode = 'copy'
}
// job directives headers
builder.headerScript = getHeaderScript(task)
return builder
Expand Down

0 comments on commit 880263f

Please sign in to comment.