Skip to content

在多进程的task任务中,存在获取数据异常问题 #1

@vzina

Description

@vzina

image

遇到一个比较极限的问题,在多进程的task任务中,存在获取数据异常问题。

swoole官方文档上对task_id的产生描述是这样的:
image

根据以上描述可以理解为:在多进程的task任务中,每个task_id在其task进程内是唯一的,其它进程可能是不唯一的,则可以判断此处逻辑存在问题$result = $this->factory->pop($taskId, $timeout);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions