Task¶
Interface to operate on the task.
- class rayvision_api.operators.task.TaskOperator(connect)¶
Bases:
object
API task related operations.
- TASK_PARAM = 'taskIds'¶
- create_task(count=1, task_user_level=50, out_user_id=None, labels=None, clone_original_id=None, artist=None)¶
Create a task ID.
- Parameters:
count (int, optional) – The quantity of task ID.
task_user_level (int) – Set the user’s task level to either 50 or 60, default is 50.
out_user_id (int, optional) – Non-required, external user ID, used to distinguish users accessing third parties.
clone_original_id (int, optional) – Clone the original task ID.
artist (str, optional) – producer.
- Returns:
- The information of the task.
- e.g.:
- {
“taskIdList”: [1658434], “aliasTaskIdList”: [2W1658434], “userId”: 100093088
}
- Return type:
- full_speed(task_id_list)¶
Full to render.
- set_task_overtime_top(task_id_list, overtime)¶
Set the task timeout stop time.
- submit_task(task_id, producer=None, only_id=False)¶
Submit a task to rayvision render farm.
- property task_id¶
The ID number of the render task.
Notes
As long as we do not initialize the class again or submit the task successfully, we can always continue to get the task id from the class instance.
- Type: