Compare commits

...

3 Commits

Author SHA1 Message Date
fit2bot
65a34aea6e feat: Update v3.10.8 2024-04-18 22:11:32 +08:00
Bai
913c0d140d fix: 修复 Celery Execution 任务保存失败导致 View 事务回滚的问题(首次登录用户修改密码失败) 2024-04-18 21:20:19 +08:00
Bryan
60d9db7707 Merge pull request #13063 from jumpserver/master
v3.10.8 master to v3.10
2024-04-18 18:05:30 +08:00
4 changed files with 12 additions and 8 deletions

1
GITSHA Normal file
View File

@@ -0,0 +1 @@
913c0d140d5fa000c732f2941bb306bb04897d71

View File

@@ -8,7 +8,7 @@ __all__ = ['BASE_DIR', 'PROJECT_DIR', 'VERSION', 'CONFIG']
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PROJECT_DIR = os.path.dirname(BASE_DIR)
VERSION = '2.0.0'
VERSION = 'v3.10.8'
CONFIG = ConfigManager.load_user_config()

View File

@@ -134,9 +134,10 @@ def task_sent_handler(headers=None, body=None, **kwargs):
args, kwargs, __ = body
try:
args = list(args)
args = json.loads(json.dumps(list(args), cls=JSONEncoder))
kwargs = json.loads(json.dumps(kwargs, cls=JSONEncoder))
except Exception as e:
logger.error('Parse task args or kwargs error (Need handle): {}'.format(e))
args = []
kwargs = {}
@@ -151,10 +152,12 @@ def task_sent_handler(headers=None, body=None, **kwargs):
request = get_current_request()
if request and request.user.is_authenticated:
data['creator'] = request.user
with transaction.atomic():
try:
CeleryTaskExecution.objects.create(**data)
except Exception as e:
logger.error(e)
logger.error('Create celery task execution error: {}'.format(e))
CeleryTask.objects.filter(name=task).update(date_last_publish=timezone.now())

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "jumpserver"
version = "v3.9"
version = "v3.10.8"
description = "广受欢迎的开源堡垒机"
authors = ["ibuler <ibuler@qq.com>"]
license = "GPLv3"