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

No idle task worker is available #420

Open
kuaifan opened this issue Nov 2, 2022 · 0 comments
Open

No idle task worker is available #420

kuaifan opened this issue Nov 2, 2022 · 0 comments
Assignees
Labels
analyzing Analyzing this issue

Comments

@kuaifan
Copy link

kuaifan commented Nov 2, 2022

  1. Your software version (Screenshot of your startup)

    Software Version
    PHP 8.1
    Swoole 5.0.0-dev
    Laravel/Lumen 9
  2. Detail description about this issue(error/log)

    image

  3. Some reproducible code blocks and steps

    class TestTask extends Task
      {
          protected $title;
      
          public function __construct($title)
          {
              $this->title = $title;
          }
      
          public function handle()
          {
              sleep(rand(1, 3));
              info($this->title . ". " . date("Y-m-d H:i:s"));
          }
      }
    
        //--------------
    
        $title = Base::generatePassword(2, 22);
        for($i = 1; $i <= 1000; $i++) {
            $t = new TestTask($title . '-' . $i);
            $t->delay(rand(1, 3));
            Task::deliver($t);
        }
@kuaifan kuaifan added the analyzing Analyzing this issue label Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzing Analyzing this issue
Projects
None yet
Development

No branches or pull requests

2 participants