DeadlineRPC
BaseDeadlineRPCJobManager
This is a base class for exposing commonly used deadline function on RPC
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
|
__get_instance_from_globals()
staticmethod
Get the instance of the Deadline plugin from the python globals. Since this class is executed in a thread, this was the best method to get the plugin instance to the class without pass it though several layers of abstraction :return:
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|
__init__()
Constructor
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
check_path_mappings(paths)
Resolves any path mappings set on input path :param [str] paths: Path string with tokens :return: Resolved path mappings
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
|
complete_task(task_id)
Marks a task as complete. This function should be called when a task is complete. This will allow the Deadline render taskl process to end and get the next render task. If this is not called, deadline will render the task indefinitely :param task_id: Task ID to mark as complete :return:
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
158 159 160 161 162 163 164 165 166 167 168 |
|
connect()
First mode of contact to the rpc server. It is very critical the client calls this function first as it will let the Deadline process know a client has connected and to wait on the task to complete. Else, Deadline will assume the connection was never made and requeue the job after a few minutes :return: bool representing the connection
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
28 29 30 31 32 33 34 35 36 37 38 39 |
|
fail_render(message)
Fail a render job with a message :param message: Failure message
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
104 105 106 107 108 109 110 |
|
get_job_extra_info_key_value(name)
Returns the value of a key in the job extra info property :param name: Extra Info Key :return: Returns Extra Info Value
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
92 93 94 95 96 97 98 99 100 101 102 |
|
get_job_id()
Returns the current JobID :return: Job ID
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
75 76 77 78 79 80 |
|
get_job_user()
Return the job user :return:
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
151 152 153 154 155 156 |
|
get_task_frames()
Returns the frames rendered by ths task :return:
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
82 83 84 85 86 87 88 89 90 |
|
get_task_id()
Returns the current Task ID :return:
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
144 145 146 147 148 149 |
|
is_connected()
Returns the connection status to a client :return:
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
41 42 43 44 45 46 |
|
is_task_complete(task_id)
Checks and returns if a task has been marked as complete :param task_id: job task id :return: return True/False if the task id is present
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
48 49 50 51 52 53 54 |
|
log_info(message)
Logs an informational message :param message: Log message
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
136 137 138 139 140 141 142 |
|
log_warning(message)
Logs a warning message :param message: Log message
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
128 129 130 131 132 133 134 |
|
set_progress(progress)
Sets the job progress :param progress: job progress
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
120 121 122 123 124 125 126 |
|
set_status_message(message)
Sets the message on the job status :param message: Status Message
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
112 113 114 115 116 117 118 |
|
update_job_output_directories(directories)
Updates the output directories on job :param list directories: List of directories
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 |
|
update_job_output_filenames(filenames)
Updates the file names for the current job :param list filenames: list of filenames
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 |
|
DeadlineRPCServerManager
Bases: BaseRPCServerManager
RPC server manager class. This class is responsible for registering a server thread class and starting the thread. This can be a blocking or non-blocking thread
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 |
|
__make_plugin_instance_global(deadline_plugin_instance)
staticmethod
Puts an instance of the deadline plugin in the python globals. This allows the server thread to get the plugin instance without having the instance passthrough abstraction layers :param deadline_plugin_instance: Deadline plugin instance :return:
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
|
client_connected()
Check if there is a client connected :return:
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
290 291 292 293 294 295 296 297 |
|
get_temporary_client_proxy()
This returns client proxy and is not necessarily expected to be used for server communication but for mostly queries. NOTE: This behavior is implied :return: RPC client proxy
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
299 300 301 302 303 304 305 306 307 308 309 310 311 |
|
shutdown()
Stops the server and shuts down the thread :return:
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
313 314 315 316 317 318 319 |
|
start(threaded=True)
Starts the server thread :param threaded: Run as threaded or blocking :return:
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
281 282 283 284 285 286 287 288 |
|
DeadlineRPCServerThread
Bases: RPCServerThread
Deadline server thread
Source code in client/ayon_deadline/repository/custom/plugins/UnrealEngine5/DeadlineRPC.py
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
|