Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.59 KB

Task.md

File metadata and controls

40 lines (31 loc) · 1.59 KB

Task

An asynchronous task

Properties

Name Type Description Notes
id str Unique identifier of the task
type str Type of the task (e.g. audio-export) [optional]
state str State of the Task
format str For files processing, the file format (e.g. `mp3`, `wav`) [optional]
score str The score unique identifier for tasks related to scores [optional]
progress TaskProgress [optional]
creation_date datetime The creation date of the task [optional]
modification_date datetime The last modification date of the task [optional]
done_date datetime The date when the task has been completed [optional]
result TaskResult [optional]
error_history List[str] If any errors happened when processing this task, the list of errors identifiers [optional]

Example

from flat_api.models.task import Task

# TODO update the JSON string below
json = "{}"
# create an instance of Task from a JSON string
task_instance = Task.from_json(json)
# print the JSON string representation of the object
print Task.to_json()

# convert the object into a dict
task_dict = task_instance.to_dict()
# create an instance of Task from a dict
task_form_dict = task.from_dict(task_dict)

[Back to Model list] [Back to API list] [Back to README]