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.
- labels (list or tuple, optional) – Custom task labels.
- 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.
Parameters: - task_id_list (list of int) – Task list.
- Example –
- {
- “taskIds”:[485],
}
-
set_task_overtime_top
(task_id_list, overtime)¶ Set the task timeout stop time.
Parameters:
-
submit_task
(task_id, producer=None, only_id=False)¶ Submit a task to rayvision render farm.
Parameters:
-