20using namespace EL::msgEventLoop;
31 ManagerData () noexcept
37 ~ManagerData () noexcept
43 addManager (std::unique_ptr<Manager> manager)
46 throw std::logic_error (
"duplicate manager order " + std::to_string (
unsigned (manager->getManagerOrder().first)) +
" " + manager->getManagerOrder().second);
47 managers.insert (std::make_pair (manager->getManagerOrder(), std::move (manager)));
56 throw std::logic_error (
"ManagerData::run() called twice");
65 if (manager.second->doManagerStep (*this).isFailure())
69 return ::StatusCode::FAILURE;
73 return ::StatusCode::SUCCESS;
ManagerStep
the individual steps of preparing a job for submission
@ initial
this is just the initial step we do, nothing really happens here
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::string submitDir
the path to the submission directory
ManagerStep step
the current ManagerStep
std::map< std::pair< ManagerOrder, std::string >, std::unique_ptr< Manager > > managers
the list of managers to run
ManagerStep nextStep
the next ManagerStep