idmtools_platform_local.internals.task_functions.general_task module¶
-
idmtools_platform_local.internals.task_functions.general_task.run_task(command: str, current_job: JobStatus, experiment_uuid: str, simulation_path: str, simulation_uuid: str) → idmtools_platform_local.status.Status¶ Executes the command and record its status in the database
- Parameters
command – command to run
current_job – The JobStatus object to update
experiment_uuid – experiment id
simulation_path – Base root of the simulation execution path
simulation_uuid – Simulation Id
- Returns
(Status) Status of the job. This is determine by the system return code of the process
-
idmtools_platform_local.internals.task_functions.general_task.extract_status(experiment_uuid: str, return_code: int, simulation_uuid) → idmtools_platform_local.status.Status¶ Extract status from a completed process :param experiment_uuid: Id of experiment(needed to update job info) :param return_code: Return Code for item :param simulation_uuid: Simulation id of the task
- Returns
(Status) Status of the job
-
idmtools_platform_local.internals.task_functions.general_task.get_current_job(experiment_uuid, simulation_uuid, command)¶
-
idmtools_platform_local.internals.task_functions.general_task.is_canceled(current_job)¶
-
idmtools_platform_local.internals.task_functions.general_task.execute_simulation(command, experiment_uuid, simulation_uuid)¶ Runs our task and updates status
- Parameters
command – Command string to execute
experiment_uuid – Experiment id of task
simulation_uuid – Simulation id of task
Returns: