A class to describe a unit of work that's a sub-component of a StandardJob.
More...
#include <Workunit.h>
|
| Workunit (std::shared_ptr< StandardJob > job, std::vector< std::tuple< WorkflowFile *, std::shared_ptr< FileLocation >, std::shared_ptr< FileLocation >>> pre_file_copies, WorkflowTask *task, std::map< WorkflowFile *, std::shared_ptr< FileLocation >> file_locations, std::vector< std::tuple< WorkflowFile *, std::shared_ptr< FileLocation >, std::shared_ptr< FileLocation >>> post_file_copies, std::vector< std::tuple< WorkflowFile *, std::shared_ptr< FileLocation >>> cleanup_file_deletions) |
| Constructor. More...
|
|
std::shared_ptr< StandardJob > | getJob () |
| Retrieve the standard job this workunit belongs to. More...
|
|
A class to describe a unit of work that's a sub-component of a StandardJob.
◆ Workunit()
wrench::Workunit::Workunit |
( |
std::shared_ptr< StandardJob > |
job, |
|
|
std::vector< std::tuple< WorkflowFile *, std::shared_ptr< FileLocation >, std::shared_ptr< FileLocation >>> |
pre_file_copies, |
|
|
WorkflowTask * |
task, |
|
|
std::map< WorkflowFile *, std::shared_ptr< FileLocation >> |
file_locations, |
|
|
std::vector< std::tuple< WorkflowFile *, std::shared_ptr< FileLocation >, std::shared_ptr< FileLocation >>> |
post_file_copies, |
|
|
std::vector< std::tuple< WorkflowFile *, std::shared_ptr< FileLocation >>> |
cleanup_file_deletions |
|
) |
| |
Constructor.
- Parameters
-
job | the job this workunit belongs to |
pre_file_copies | a vector of file copy actions to perform in sequence first |
task | a WorkflowTask |
file_locations | locations where tasks should read/write files |
post_file_copies | a vector of file copy actions to perform in sequence after all tasks |
cleanup_file_deletions | a vector of file deletion actions to perform last |
◆ addDependency()
void wrench::Workunit::addDependency |
( |
std::shared_ptr< Workunit > |
parent, |
|
|
std::shared_ptr< Workunit > |
child |
|
) |
| |
|
static |
Add a dependency between two work units (does nothing if the dependency already exists)
- Parameters
-
parent | the parent work unit |
child | the child work unit |
- Exceptions
-
◆ createWorkunits()
std::set< std::shared_ptr< Workunit > > wrench::Workunit::createWorkunits |
( |
std::shared_ptr< StandardJob > |
job | ) |
|
|
static |
Create all work units for a newly dispatched job.
- Parameters
-
- Returns
- A set of work units
◆ getJob()
std::shared_ptr< StandardJob > wrench::Workunit::getJob |
( |
| ) |
|
Retrieve the standard job this workunit belongs to.
- Returns
- a standard job
The documentation for this class was generated from the following files: