在多进程的task任务中,存在获取数据异常问题
- Dominant language
- PHP
- Stars
- 9
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description

遇到一个比较极限的问题,在多进程的task任务中,存在获取数据异常问题。
swoole官方文档上对task_id的产生描述是这样的:

根据以上描述可以理解为:在多进程的task任务中,每个task_id在其task进程内是唯一的,其它进程可能是不唯一的,则可以判断此处逻辑存在问题`$result = $this->factory->pop($taskId, $timeout);`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the `$this->factory->pop($taskId, $timeout)` call and the task_id behavior described in the issue. Reproduce the abnormal data retrieval in a multi-process task, then verify that results are matched to the correct task rather than relying on an identifier that may repeat across task processes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100