forked from shaba/openuds
Fixed Version number for actor
This commit is contained in:
parent
3c5ef5817f
commit
5ba704ac8a
@ -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()
|
||||
|
@ -1 +0,0 @@
|
||||
VERSION = '3.0.0'
|
@ -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
|
||||
|
1
actor/src/udsactor/version.py
Normal file
1
actor/src/udsactor/version.py
Normal file
@ -0,0 +1 @@
|
||||
VERSION = '3.5.0'
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user