19 #include "wrench/managers/JobManager.h"
123 #endif //WRENCH_JOB_H
simgrid::s4u::Mailbox * originator_mailbox
The originator's mailbox.
Definition: Job.h:88
simgrid::s4u::Mailbox * getOriginCallbackMailbox()
Get the "origin" callback mailbox.
Definition: Job.cpp:64
std::map< std::string, std::string > & getServiceSpecificArguments()
Return the service-specific arguments that are used during job submission.
Definition: Job.cpp:164
virtual ~Job()
Destructor.
Definition: Job.cpp:26
Abstraction of a job used for executing tasks in a Workflow.
Definition: Job.h:34
simgrid::s4u::Mailbox * getCallbackMailbox()
Get the job's "next" callback mailbox, without popping it.
Definition: Job.cpp:101
A helper daemon (co-located with and explicitly started by an execution controller),...
Definition: JobManager.h:56
bool already_submitted_to_job_manager
Whether the job has already been submitted to the job manager.
Definition: Job.h:102
void printCallbackMailboxStack()
Method to print the call back stack.
Definition: Job.cpp:72
simgrid::s4u::Mailbox * popCallbackMailbox()
Get the "next" callback mailbox (returns the workflow mailbox if the mailbox stack is empty),...
Definition: Job.cpp:88
virtual void setPriority(double priority)
Set the job's priority (the higher the priority value, the higher the priority)
Definition: Job.cpp:188
std::shared_ptr< ComputeService > parent_compute_service
The compute service to which the job was submitted.
Definition: Job.h:99
Job(std::string name, std::shared_ptr< JobManager > job_manager)
Constructor.
Definition: Job.cpp:35
double end_date
The date at which the job ended (with success or failure)
Definition: Job.h:97
Definition: Action.cpp:28
std::string name
The job's name.
Definition: Job.h:93
void pushCallbackMailbox(simgrid::s4u::Mailbox *mailbox)
Pushes a callback mailbox.
Definition: Job.cpp:113
std::shared_ptr< JobManager > job_manager
The Job Manager in charge of this job.
Definition: Job.h:86
double getPriority() const
Get the job's priority (the higher the priority value, the higher the priority)
Definition: Job.cpp:180
std::string getName()
Get the job's name.
Definition: Job.cpp:55
double priority
The job's priority (the higher the number, the higher the priority)
Definition: Job.h:105
double getEndDate()
Get the date at which the job ended (<0 means "never submitted")
Definition: Job.cpp:156
unsigned long getNewUniqueNumber()
Generate a unique number (for each newly generated job)
Definition: Job.cpp:122
std::stack< simgrid::s4u::Mailbox * > callback_mailbox_stack
Stack of callback mailboxes (to pop notifications)
Definition: Job.h:84
void setParentComputeService(std::shared_ptr< ComputeService > compute_service)
Set the parent compute service of the job.
Definition: Job.cpp:131
std::map< std::string, std::string > service_specific_args
Service-specific arguments used during job submission.
Definition: Job.h:81
double getSubmitDate()
Get the date at which the job was last submitted (<0 means "never submitted")
Definition: Job.cpp:148
double submit_date
The date at which the job was last submitted.
Definition: Job.h:95
void setServiceSpecificArguments(std::map< std::string, std::string > args)
Sets the service-specific arguments that are used during job submission.
Definition: Job.cpp:172
std::shared_ptr< ComputeService > getParentComputeService()
Get the compute service that is running /ran the job.
Definition: Job.cpp:140