A class to describe a unit of work that's a sub-component of a StandardJob.
More...
#include <Workunit.h>
|
| Workunit (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...
|
|
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 |
( |
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()
Create all work units for a newly dispatched job.
- Parameters
-
- Returns
- A set of work units
◆ getJob()
Retrieve the standard job this workunit belongs to.
- Returns
- a standard job
The documentation for this class was generated from the following files: