Add UI notifications to a try block

This commit is contained in:
Brett Williams
2023-10-25 21:52:08 -05:00
parent 32d863f624
commit deac943e4c

View File

@@ -59,6 +59,7 @@ class DistributedJobManager:
RenderServerProxy(hostname).cancel_job(child_id, confirm=True)
# UI Notifications
try:
if new_status == RenderStatus.COMPLETED:
logger.debug("show render complete notification")
notification.notify(
@@ -80,6 +81,8 @@ class DistributedJobManager:
message=f'{render_job.name} started rendering',
timeout=10 # Display time in seconds
)
except Exception as e:
logger.debug(f"Unable to show UI notification: {e}")
@classmethod
def handle_subjob_status_change(cls, local_job, subjob_data):