hhyo / Archery

SQL 审核查询平台
https://archerydms.com
Apache License 2.0
6k stars 1.68k forks source link

SQL 上线日志顺序错乱 #2697

Closed moyanach closed 3 months ago

moyanach commented 3 months ago

重现步骤

  1. 提交上线 SQL
  2. 审批上线 SQL
  3. 点击执行
  4. 前面几步都没有问题,且正产执行,但执行后记录的上线日志顺序不对

预期外的结果

目前现象

![Uploading image.png…]()

跟踪代码,没有做任何修改

image

查看日志 tail -n 40 qcluster.log (日志时间和界面工单日志不一致是因为我不是管理员,看不到最新提交的工单,但上线日志都是一样的情况)

image

可能并不是bug,但是目前没有排查思路,是有什么设置吗

日志文本

2024-06-25 11:24:53,646][MainThread:139782280976192][task_id:django-q][cluster.py:690][WARNING]- Preserving django database connections because sync=True. Beware that tasks are now injected in the calling context/transactions which may result in unexpected bahaviour.
[2024-06-25 11:25:23,757][MainThread:139782280976192][task_id:django-q][cluster.py:690][WARNING]- Preserving django database connections because sync=True. Beware that tasks are now injected in the calling context/transactions which may result in unexpected bahaviour.
[2024-06-25 11:25:53,869][MainThread:139782280976192][task_id:django-q][cluster.py:690][WARNING]- Preserving django database connections because sync=True. Beware that tasks are now injected in the calling context/transactions which may result in unexpected bahaviour.

版本

1.10.0

部署方式

Docker

是否还有其他可以辅助定位问题的信息?比如数据库版本等

No response