Commit 093d5666 authored by Nils Krumnack's avatar Nils Krumnack
Browse files

support external files in EventLoopGrid

Originally I had hoped to make this a more encompassing change, but
for now this was a lot simpler.
parent 04f3e48b
......@@ -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"]
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:
......
Markdown is supported
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