Commit 4cc0499d authored by Nils Erik Krumnack's avatar Nils Erik Krumnack
Browse files

Merge branch 'el_ext_file' into '21.2'

support external files in EventLoopGrid

See merge request !43681
parents 339ef14f 093d5666
......@@ -436,6 +436,10 @@ namespace EL
/// \}
/// a list of files that need to be available within the worker job
static const std::string optUserFiles;
/// description: batch-specific options
/// rationale: these options are for configuring batch drivers
......
......@@ -102,6 +102,8 @@ namespace EL
const std::string Job::optRetries = SH::MetaNames::openRetries();
const std::string Job::optRetriesWait = SH::MetaNames::openRetriesWait();
const std::string Job::optUserFiles = "nc_EventLoop_UserFiles";
const std::string Job::optMemResidentPerEventIncreaseLimit =
"nc_resMemPerEventIncrease";
const std::string Job::optMemVirtualPerEventIncreaseLimit =
......
......@@ -96,7 +96,12 @@ def ELG_prun(sample) :
import copy
dummycmd = copy.deepcopy(cmd)
dummycmd += ["--outTarBall=jobcontents.tgz"]
dummycmd += ["--extFile=jobdef.root,runjob.sh"]
if len(sample.meta().castString('nc_EventLoop_UserFiles')) :
dummycmd += ["--extFile=jobdef.root,runjob.sh," + ",".join (sample.meta().castString('nc_EventLoop_UserFiles'))]
pass
else :
dummycmd += ["--extFile=jobdef.root,runjob.sh"]
pass
dummycmd += ["--noSubmit"]
try:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment