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

swoole-job挂起或者阻塞的现象 #3

Open
paceboy opened this issue Oct 30, 2024 · 0 comments
Open

swoole-job挂起或者阻塞的现象 #3

paceboy opened this issue Oct 30, 2024 · 0 comments

Comments

@paceboy
Copy link

paceboy commented Oct 30, 2024

我用swoole-job集成了tp,但发现在调度一些任务时,会出现阻塞的现象。当阻塞时,用命令的方式:php think SendMessage也可以被调用。
同时其他任务可以被正常调度。异常日志启动调度后,就阻塞了,正常日志是可以继续执行下去。
异常日志如下:
2024/10/30 01:21:23 YCFLOG [swoole-jobs] [info] [application.log] [PID63250] jobObject: {"uuid":"reportJob67218a13172f1.1730251234.083","topic":"reportJob","jobClass":"Report","jobMethod":"Report","jobParams":{"id":"19458","module":"ExportErrorStatisticList","company_id":"7edfe567-60b2","company_name":"AAA"},"jobExtras":{"delay":0,"priority":1}}
正常日志如下:
2024/10/30 01:21:23 YCFLOG [swoole-jobs] [info] [application.log] [PID63250] jobObject: {"uuid":"reportJob67218a13172f1.1730251345.092","topic":"reportJob","jobClass":"Report","jobMethod":"Report","jobParams":{"id":"19458","module":"ExportErrorStatisticList","company_id":"7edfe567-60b2-","company_name":"AAA"},"jobExtras":{"delay":0,"priority":1}}
2024/10/30 01:21:23 YCFLOG [swoole-jobs] [info] [application.log] [PID63250] baseAction: {}
2024/10/30 01:21:23 YCFLOG [swoole-jobs] [info] [application.log] [PID63250] baseAction start...
2024/10/30 01:21:24 YCFLOG [swoole-jobs] [info] [application.log] [PID63250] baseAction end...
2024/10/30 01:21:24 YCFLOG [swoole-jobs] [info] [application.log] [PID63250] pid: 63250, job id: reportJob67218a13172f1.1730251345.092 done, spend time: 0.50584387779236

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

No branches or pull requests

1 participant