class wrench::BatschedBatchScheduler : public wrench::BatchScheduler
A class that defines a batsched batch scheduler.
inline explicit BatschedBatchScheduler(BatchComputeService *cs)
cs – The computer service for which this scheduler is operating
virtual std::map<std::string, double> getStartTimeEstimates(std::set<std::tuple<std::string, unsigned long, unsigned long, double>> set_of_jobs) override
Method to get start time estimates.
set_of_jobs – the set of job configurations whose start times should be estimated. Each job configuration is :(i) a name; (ii) a number of nodes; (iii) a number of cores per node; and (iv) an execution duration in seconds.
a map of estimated start dates (in seconds), indexed by job configuration name
virtual void init() override
virtual void launch() override
Method to launch Batsched.
Method to process a job completion.
batch_job – the batch job that has completed
Method to process a job failure.
batch_job – the batch job that has failed
Method to process a job submission.
batch_job – the batch job that was submitted
Method to process a job termination.
batch_job – the batch job that was terminated
virtual void processQueuedJobs() override
Method to process queued jobs.
virtual void processUnknownJobTermination(std::string job_id) override
Method to process a job termination when the job is already forgotten (useful for batsched)
job_id – the id of the batch job that was terminated
virtual void shutdown() override
Method to shutdown Batsched.
- inline explicit BatschedBatchScheduler(BatchComputeService *cs)