Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ 问题咨询 ] 工单状态-执行中-确认中 #110

Closed
2963305366 opened this issue Apr 9, 2019 · 7 comments
Closed

[ 问题咨询 ] 工单状态-执行中-确认中 #110

2963305366 opened this issue Apr 9, 2019 · 7 comments
Labels
question Further information is requested

Comments

@2963305366
Copy link

问题描述

archery提SQL工单,审批流程走完后,点击的立即执行,工单状态一直是:执行中,点进去工单里面查看是:确认中...

image

image

image

本人是手动安装的archery:
启动服务命令都是nohup:
nohup python3 manage.py runserver 0.0.0.0:9123 --insecure &

查看nohup.out 看到一直在等待返回结果:
[09/Apr/2019 13:43:56] "POST /getWorkflowStatus/ HTTP/1.1" 200 55
[09/Apr/2019 13:43:58] "POST /getWorkflowStatus/ HTTP/1.1" 200 55
[09/Apr/2019 13:44:17] "POST /getWorkflowStatus/ HTTP/1.1" 200 55
[09/Apr/2019 13:44:55] "POST /getWorkflowStatus/ HTTP/1.1" 200 55

请问出现这样的情况到底在哪里看问题出在哪?

@2963305366 2963305366 added the question Further information is requested label Apr 9, 2019
@hhyo
Copy link
Owner

hhyo commented Apr 9, 2019

https://github.com/hhyo/archery/wiki/FAQ#工单状态一直是执行中

@2963305366
Copy link
Author

task里面,错误,成功,队列中的,全部都是0
inception get processlist 也是空

@LeoQuote
Copy link
Collaborator

LeoQuote commented Apr 9, 2019

老哥,第一步没检查吧? qcluster起了吗?

@2963305366
Copy link
Author

起了呢,python3 manage.py qcluster 进程在的,archery.1.4.3版本
我是老妹,谢谢。

@hhyo
Copy link
Owner

hhyo commented Apr 9, 2019

进程在不代表正常启动了,所以才需要确认日志downloads/log/archery.log
或者使用python manage.py qmonitor确认qcluster状态

下面是正常启动的日志

.
[2019-04-09 00:01:16,112][MainThread:140351771723584][task_id:django-q][cluster.py:53][INFO]- Q Cluster-23 starting.
[2019-04-09 00:01:16,129][MainThread:140351771723584][task_id:django-q][cluster.py:348][INFO]- Process-1:1 ready for work at 38
[2019-04-09 00:01:16,136][MainThread:140351771723584][task_id:django-q][cluster.py:348][INFO]- Process-1:2 ready for work at 39
[2019-04-09 00:01:16,145][MainThread:140351771723584][task_id:django-q][cluster.py:348][INFO]- Process-1:3 ready for work at 40
[2019-04-09 00:01:16,147][MainThread:140351771723584][task_id:django-q][cluster.py:201][INFO]- Process-1 guarding cluster at 37
[2019-04-09 00:01:16,150][MainThread:140351771723584][task_id:django-q][cluster.py:348][INFO]- Process-1:4 ready for work at 41
[2019-04-09 00:01:16,153][MainThread:140351771723584][task_id:django-q][cluster.py:319][INFO]- Process-1:5 monitoring at 42
[2019-04-09 00:01:16,156][MainThread:140351771723584][task_id:django-q][cluster.py:284][INFO]- Process-1:6 pushing tasks at 43
[2019-04-09 00:01:16,157][MainThread:140351771723584][task_id:django-q][cluster.py:204][INFO]- Q Cluster-23 running.

实在不行重启qcluster吧

@2963305366
Copy link
Author

2963305366 commented Apr 9, 2019

谢谢大佬,现在可以了。
1,mkdir -p /opt/software/downloads/log/ 建了一个这个路径
2,nohup python manage.py qmonitor & 重启了这个进程

以后有同样的问题的大佬们可以参考下。

@2963305366
Copy link
Author

完美解决,谢谢大佬们

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants