diff --git a/openpype/modules/ftrack/event_handlers_user/action_delivery.py b/openpype/modules/ftrack/event_handlers_user/action_delivery.py index 9c50fb6037..2e7599647a 100644 --- a/openpype/modules/ftrack/event_handlers_user/action_delivery.py +++ b/openpype/modules/ftrack/event_handlers_user/action_delivery.py @@ -417,15 +417,14 @@ class Delivery(BaseAction): ) finally: + if report["success"]: + job["status"] = "done" + else: + job["status"] = "failed" session.commit() self.db_con.uninstall() - if report["success"]: - job["status"] = "done" - - else: - job["status"] = "failed" - + if not report["success"]: self.show_interface( items=report["items"], title=report["title"],