31 testInvariant ()
const
47 doManagerStep (Detail::ManagerData& data)
const
50 using namespace msgEventLoop;
56 data.batchJobId =
"EL_JOBID=$PBS_ARRAYID\n";
67 assert (!data.batchJobIndices.empty());
68 assert (data.batchJobIndices.back() + 1 == data.batchJobIndices.size());
69 const std::size_t njob = data.batchJobIndices.size();
71 std::ostringstream cmd;
72 cmd <<
"cd " << data.submitDir <<
"/submit && qsub "
74 <<
" -t 0-" << (njob-1) <<
" run";
75 if (gSystem->Exec (cmd.str().c_str()) != 0)
77 data.submitted =
true;
84 return ::StatusCode::SUCCESS;
#define RCU_NEW_INVARIANT(x)
#define RCU_READ_INVARIANT(x)
#define RCU_THROW_MSG(message)
ClassImp(EL::TorqueDriver) namespace EL
virtual::StatusCode doManagerStep(Detail::ManagerData &data) const override
static const std::string optSubmitFlags
description: the name of the option for supplying extra submit parameters to batch systems rationale:...
a Driver for running on Torque batch systems
@ doResubmit
call the actual doResubmit method
@ submitJob
do the actual job submission
@ batchScriptVar
create the variables needed for the batch-run script
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.