wrench.task
- class wrench.task.Task(simulation: Simulation, workflow: Workflow, name: str, flops: flops = None, min_num_cores: number = None, max_num_cores: number = None, memory: number = None, input_files: List[File] = None, output_files: List[File] = None)
Bases:
SimulationItemWRENCH Task class
- class TaskState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum- COMPLETED = 3
- NOT_READY = 0
- PENDING = 2
- READY = 1
- UNKNOWN = 4
- add_input_file(file: File) None
Add a file as input file for this task :param file: File name :type file: File
- add_output_file(file: File) None
Add a file as output file for this task :param file: File name :type file: File
- get_bottom_level() int
Get the task’s bottom-level :return: A bottom-level :rtype: int
- get_end_date() float
Get the task’s end date :return: A date in seconds :rtype: float
- get_flops() float
Get the number of flops in a task :return: A number of flops :rtype: float
- get_input_files() List[File]
Get the list of input files for this task :return: List of input file names :rtype: List[File]
- get_max_num_cores() int
Get the task’s maximum number of required cores :return: A number of cores :rtype: integer
- get_memory() int
Get the task’s memory requirement :return: A memory size in bytes :rtype: int
- get_min_num_cores() int
Get the task’s minimum number of required cores :return: A number of cores :rtype: integer
- get_name() str
Get the name
- get_number_of_children() int
Get the task’s number of children :return: A number of children :rtype: int
- get_output_files() List[File]
Get the list of output files for this task :return: List of output file names :rtype: List[File]
- get_start_date() float
Get the task’s start date :return: A date in seconds :rtype: float