Fixed Version number for actor

This commit is contained in:
Adolfo Gómez García 2021-07-08 10:40:56 +02:00
parent 3c5ef5817f
commit 5ba704ac8a
5 changed files with 7 additions and 4 deletions

View File

@ -187,7 +187,7 @@ if __name__ == "__main__":
app = QApplication(sys.argv)
if udsactor.platform.operations.checkPermissions() is False:
QMessageBox.critical(None, 'UDS Actor', 'This Program must be executed as administrator', QMessageBox.Ok)
QMessageBox.critical(None, 'UDS Actor', 'This Program must be executed as administrator', QMessageBox.Ok) # type: ignore
sys.exit(1)
myapp = UDSConfigDialog()

View File

@ -1 +0,0 @@
VERSION = '3.0.0'

View File

@ -37,7 +37,7 @@ import typing
import requests
from . import types
from .info import VERSION
from .version import VERSION
# Default public listen port
LISTEN_PORT = 43910

View File

@ -0,0 +1 @@
VERSION = '3.5.0'

View File

@ -38,7 +38,7 @@ import logging
import typing
from django.db import connections
from django.db import transaction
from django.db import transaction, OperationalError
from django.db.models import Q
from uds.models import DelayedTask as DBDelayedTask
@ -119,6 +119,9 @@ class DelayedTaskRunner:
taskInstance = pickle.loads(taskInstanceDump)
except IndexError:
return # No problem, there is no waiting delayed task
except OperationalError:
logger.info('Retrying delayed task')
return
except Exception:
# Transaction have been rolled back using the "with atomic", so here just return
# Note that is taskInstance can't be loaded, this task will not be run