wrench.file_write_action
- class wrench.file_write_action.FileWriteAction(simulation, compound_job: CompoundJob, name: str, file: File, storage_service: StorageService, uses_scratch: bool)
Bases:
ActionWRENCH File Write Action class
- class ActionState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum- COMPLETED = 3
- FAILED = 5
- KILLED = 4
- NOT_READY = 0
- READY = 1
- STARTED = 2
- get_end_date() float
Get the action’s end date
- Returns:
a date (or -1 if not ended)
- Return type:
float
- get_failure_cause() str
Get the action’s failure cause
- Returns:
a failure cause (or None if no failure has occurred)
- Return type:
str
- get_file_location() StorageService
Get storage service of file to write to
- Returns:
storage service object
- Return type:
- get_job() CompoundJob
Get the job that this task belongs to
- Returns:
a list of task objects
- Return type:
List[Task]
- get_name() str
Get the name
- get_start_date() float
Get the action’s start date
- Returns:
a date (or -1 if not started)
- Return type:
float
- get_state() ActionState
Get the state of the action
- uses_scratch() bool
Returns whether the action uses scratch
- Returns:
boolean on whether action uses scratch
- Return type:
boolean