A standard (i.e., non-pilot) workflow job that can be submitted to a ComputeService by a WMS (via a JobManager) More...

#include <StandardJob.h>

Inheritance diagram for wrench::StandardJob:
wrench::WorkflowJob

Public Types

enum  State {
  NOT_SUBMITTED, PENDING, RUNNING, COMPLETED,
  FAILED, TERMINATED
}
 Standad job states. More...
 
- Public Types inherited from wrench::WorkflowJob
enum  Type { STANDARD, PILOT }
 Job types. More...
 

Public Member Functions

std::map< WorkflowFile
*, StorageService * > 
getFileLocations ()
 Get the file location map for the job. More...
 
unsigned long getMinimumRequiredNumCores ()
 Returns the minimum number of cores required, over all tasks in the job (i.e., at least one task in the job cannot run if fewer cores than this minimum are available) More...
 
unsigned long getNumCompletedTasks ()
 Get the number of completed tasks in the job. More...
 
unsigned long getNumTasks ()
 Get the number of tasks in the job. More...
 
StandardJob::State getState ()
 Get the state of the standard job. More...
 
std::vector< WorkflowTask * > getTasks ()
 Get the workflow tasks in the job. More...
 
- Public Member Functions inherited from wrench::WorkflowJob
std::string getName ()
 Get the job's name. More...
 
double getSubmitDate ()
 Get the date at which the job was last submitted (<0 means "never submitted") More...
 
Type getType ()
 Get the job type. More...
 
std::string getTypeAsString ()
 Get the job type name. More...
 

Public Attributes

std::set< std::tuple
< WorkflowFile
*, StorageService * > > 
cleanup_file_deletions
 The file deletion operations to perform at the end.
 
std::map< WorkflowFile
*, StorageService * > 
file_locations
 The file locations that tasks should read/write files from/to.
 
unsigned long num_completed_tasks
 The number of computational tasks that have completed.
 
std::set< std::tuple
< WorkflowFile
*, StorageService
*, StorageService * > > 
post_file_copies
 The file copy operations to perform after computational tasks.
 
std::set< std::tuple
< WorkflowFile
*, StorageService
*, StorageService * > > 
pre_file_copies
 The file copy operations to perform before computational tasks.
 
std::vector< WorkflowTask * > tasks
 The job's computational tasks.
 
double total_flops
 The job's total computational cost (in flops)
 

Detailed Description

A standard (i.e., non-pilot) workflow job that can be submitted to a ComputeService by a WMS (via a JobManager)

Member Enumeration Documentation

Standad job states.

Enumerator
NOT_SUBMITTED 

Not submitted yet.

PENDING 

Submitted but not running yet.

RUNNING 

Running.

COMPLETED 

Completed successfully.

FAILED 

Failed.

TERMINATED 

Terminated by submitter.

Member Function Documentation

std::map< WorkflowFile *, StorageService * > wrench::StandardJob::getFileLocations ( )

Get the file location map for the job.

Returns
a map of files to storage services
unsigned long wrench::StandardJob::getMinimumRequiredNumCores ( )

Returns the minimum number of cores required, over all tasks in the job (i.e., at least one task in the job cannot run if fewer cores than this minimum are available)

Returns
the number of cores
unsigned long wrench::StandardJob::getNumCompletedTasks ( )

Get the number of completed tasks in the job.

Returns
the number of completed tasks
unsigned long wrench::StandardJob::getNumTasks ( )

Get the number of tasks in the job.

Returns
the number of tasks
StandardJob::State wrench::StandardJob::getState ( )

Get the state of the standard job.

Returns
the state
std::vector< WorkflowTask * > wrench::StandardJob::getTasks ( )

Get the workflow tasks in the job.

Returns
a vector of workflow tasks

The documentation for this class was generated from the following files:
  • /home/wrench/wrench/include/wrench/workflow/job/StandardJob.h
  • /home/wrench/wrench/src/wrench/workflow/job/StandardJob.cpp