diff --git a/__init__.py b/__init__.py index 6c7e448..e77dc43 100644 --- a/__init__.py +++ b/__init__.py @@ -1,4 +1,4 @@ import logging -logging.basicConfig(level=logging.INFO) +logging.basicConfig(level=logging.DEBUG) logging.getLogger(__name__).addHandler(logging.NullHandler()) \ No newline at end of file diff --git a/database/e701.json b/failed/0233.json similarity index 76% rename from database/e701.json rename to failed/0233.json index 9c680f0..277fe22 100644 --- a/database/e701.json +++ b/failed/0233.json @@ -1,9 +1,9 @@ { - "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": [], @@ -11,7 +11,7 @@ "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, @@ -19,6 +19,6 @@ "start_frame": 0, "end_frame": 0, "length": 0, - "time_estimate": "0h:0m:4s", - "progress": 1 + "time_estimate": "0h:0m:1s", + "progress": 8 }} \ No newline at end of file diff --git a/failed/0e94.json b/failed/0e94.json new file mode 100644 index 0000000..22962ae --- /dev/null +++ b/failed/0e94.json @@ -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 +}} \ No newline at end of file diff --git a/requestSubmitter.py b/requestSubmitter.py index fae654d..bc90daa 100644 --- a/requestSubmitter.py +++ b/requestSubmitter.py @@ -11,6 +11,7 @@ LOGGER = logging.getLogger(__name__) + def send(d): """ Send/Submit a new render request @@ -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 = { diff --git a/util/renderRequest.py b/util/renderRequest.py index 210f950..e0bc111 100644 --- a/util/renderRequest.py +++ b/util/renderRequest.py @@ -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__)) @@ -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,