Skip to content

Commit

Permalink
HOLY FUCKING SHIT DET VIRKER
Browse files Browse the repository at this point in the history
Successful render of request locally.
Successful 'myWorker' render using 'Render (Remote)'.
  • Loading branch information
mBoegh committed Nov 6, 2023
1 parent 09f3f55 commit 9a3fcb2
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 9 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import logging

logging.basicConfig(level=logging.INFO)
logging.basicConfig(level=logging.DEBUG)
logging.getLogger(__name__).addHandler(logging.NullHandler())
10 changes: 5 additions & 5 deletions database/e701.json → failed/0233.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"uid": "e701",
"uid": "0233",
"name": "MyProject",
"owner": "TEST_SUBMITTER_01",
"worker": "RENDER_MACHINE_01",
"time_created": "11/05/2023, 13:56:50",
"time_created": "11/06/2023, 19:23:58",
"priority": 0,
"category": "",
"tags": [],
"status": "in progress",
"umap_path": "/Game/Main.Main",
"useq_path": "/Game/NewLevelSequence.NewLevelSequence",
"uconfig_path": "/Game/tempQue031123.tempQue031123",
"output_path": "",
"output_path": "/test_renders",
"width": 1280,
"height": 720,
"frame_rate": 30,
"format": "JPG",
"start_frame": 0,
"end_frame": 0,
"length": 0,
"time_estimate": "0h:0m:4s",
"progress": 1
"time_estimate": "0h:0m:1s",
"progress": 8
}}
24 changes: 24 additions & 0 deletions failed/0e94.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"uid": "0e94",
"name": "MyProject",
"owner": "TEST_SUBMITTER_01",
"worker": "RENDER_MACHINE_01",
"time_created": "11/06/2023, 19:19:37",
"priority": 0,
"category": "",
"tags": [],
"status": "in progress",
"umap_path": "/Game/Main.Main",
"useq_path": "/Game/NewLevelSequence.NewLevelSequence",
"uconfig_path": "/Game/tempQue031123.tempQue031123",
"output_path": "/test_renders",
"width": 1280,
"height": 720,
"frame_rate": 30,
"format": "JPG",
"start_frame": 0,
"end_frame": 0,
"length": 0,
"time_estimate": "0h:0m:9s",
"progress": 0
}}
6 changes: 4 additions & 2 deletions requestSubmitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
LOGGER = logging.getLogger(__name__)



def send(d):
"""
Send/Submit a new render request
Expand All @@ -24,11 +25,12 @@ def send(d):

if __name__ == '__main__':
test_job_a = {
'name': 'MyProject',
'name': 'jobName',
'owner': 'TEST_SUBMITTER_01',
'umap_path': '/Game/Main.Main',
'useq_path': '/Game/NewLevelSequence.NewLevelSequence',
'uconfig_path': '/Game/tempQue031123.tempQue031123'
'uconfig_path': '/Game/tempConfig061123.tempConfig061123',
'output_path': 'C:\\Users\\Bøgh\\Documents\\Projects\\unrealRenderFarm\\test_renders'
}

test_job_b = {
Expand Down
25 changes: 24 additions & 1 deletion util/renderRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import json
from datetime import datetime


logging.basicConfig(level=logging.INFO)
LOGGER = logging.getLogger(__name__)

MODULE_PATH = os.path.dirname(os.path.abspath(__file__))
Expand Down Expand Up @@ -170,6 +170,29 @@ def from_dict(cls, d):
time_estimate = d.get('time_estimate') or ''
progress = d.get('progress') or 0

LOGGER.debug(f"""@ Function 'from_dict' return values: \n
'uid = ' {uid}\n
'name' = {name}\n
'owner' = {owner}\n
'worker' = {worker}\n
'time_created' = {time_created}\n
'priority' = {priority}\n
'category' = {category}\n
'tags' = {tags}\n
'status' = {status}\n
'umap_path' = {umap_path}\n
'useq_path' = {useq_path}\n
'uconfig_path' = {uconfig_path}\n
'output_path' = {output_path}\n
'width' = {width}\n
'height' = {height}\n
'frame_rate' = {frame_rate}\n
'format' = {format}\n
'start_frame' = {start_frame}\n
'end_frame' = {end_frame}\n
'time_estimate' = {time_estimate}\n
'progress' = {progress}""")

return cls(
uid=uid,
name=name,
Expand Down

0 comments on commit 9a3fcb2

Please sign in to comment.