job.execution.tasks.json.results package

Submodules

job.execution.tasks.json.results.task_results module

Defines the JSON schema for describing task results

class job.execution.tasks.json.results.task_results.TaskResults(task_results=None, do_validate=True)

Bases: object

Represents the task results for a job execution

add_task_results(tasks)

Adds the given job execution tasks to the results

Parameters:tasks (list()) – The job execution tasks to add
get_dict()

Returns the internal dictionary that represents the task results

Returns:The internal dictionary
Return type:dict
get_task_ended(task_type)

Returns the end time for the given task type, possibly None

Parameters:task_type (string) – The task type
Returns:The task end time
Return type:datetime.datetime:
get_task_run_length(task_type)

Returns the run time length for the given task type, possibly None

Parameters:task_type (string) – The task type
Returns:The task run time length
Return type:datetime.timedelta:
get_task_started(task_type)

Returns the start time for the given task type, possibly None

Parameters:task_type (string) – The task type
Returns:The task start time
Return type:datetime.datetime:

Module contents