Skip to content

You can't enqueue a waiting request when using the max concurrency control! #145

@axpwx

Description

@axpwx

设置了retry_time和max_co的时候,触发重试会报错"You can't enqueue a waiting request when using the max concurrency control!".
最小化代码:

<?php
go(function() {
    $idList = [
        '1',
        '2',
        '3',
        '4',
        '5',
    ];
    foreach ($idList as $id) {
        $urls[] = [
          'uri' => 'https://domain/path/ . $id,
        ];
    }
    
    try {
        $responses = SaberGM::requests($urls, [
            'exception_report' => 0,
            'retry_time'       => 3,
            'max_co'           => 2
        ]);
    } catch (Exception $e) {
        echo $e->getMessage(); // You can't enqueue a waiting request when using the max concurrency control!
    }
});

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