10 #ifndef WRENCH_BATSCHEDBATCHSCHEDULER_H
11 #define WRENCH_BATSCHEDBATCHSCHEDULER_H
13 #include "wrench/services/compute/batch/batch_schedulers/BatchScheduler.h"
92 std::map<std::string, double>
getStartTimeEstimates(std::set<std::tuple<std::string, unsigned long, unsigned long, double>> set_of_jobs)
override;
95 #ifdef ENABLE_BATSCHED
97 void notifyJobEventsToBatSched(std::string job_id, std::string status, std::string job_state,
98 std::string kill_reason, std::string event_type);
100 void appendJobInfoToCSVOutputFile(
BatchJob *batch_job, std::string status);
102 void startBatschedNetworkListener();
107 unsigned long batsched_port;
121 #endif //WRENCH_BATSCHEDBATCHSCHEDULER_H
void processJobCompletion(std::shared_ptr< BatchJob > batch_job) override
Method to process a job completion.
Definition: BatschedBatchScheduler.cpp:387
void processJobSubmission(std::shared_ptr< BatchJob > batch_job) override
Method to process a job submission.
Definition: BatschedBatchScheduler.cpp:422
BatchComputeService * cs
Compute service for which this scheduler is operating.
Definition: BatchScheduler.h:113
void processJobTermination(std::shared_ptr< BatchJob > batch_job) override
Method to process a job termination.
Definition: BatschedBatchScheduler.cpp:399
BatschedBatchScheduler(BatchComputeService *cs)
Constructor.
Definition: BatschedBatchScheduler.h:32
A batch job, which encapsulates a WorkflowJob and additional information used by a batch.
Definition: BatchJob.h:16
void launch() override
Launch method.
Definition: BatschedBatchScheduler.cpp:187
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.
Definition: BatschedBatchScheduler.cpp:201
A batch-scheduled compute service that manages a set of compute hosts and controls access to their re...
Definition: BatchComputeService.h:49
void processUnknownJobTermination(std::string job_id) override
Method to process a job termination when the job is already forgotten (useful for batsched)
Definition: BatschedBatchScheduler.cpp:411
An abstract class that defines a batch scheduler.
Definition: BatchScheduler.h:27
A class that defines a batsched batch scheduler.
Definition: BatschedBatchScheduler.h:24
void shutdown() override
Shutdown method.
Definition: BatschedBatchScheduler.cpp:272
void processJobFailure(std::shared_ptr< BatchJob > batch_job) override
Method to process a job failure.
Definition: BatschedBatchScheduler.cpp:373
void processQueuedJobs() override
Method to process queued jobs.
Definition: BatschedBatchScheduler.cpp:317
void init() override
Initialization method.
Definition: BatschedBatchScheduler.cpp:44