Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T think-queue
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 22
    • Issues 22
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • 刘晨
  • think-queue
  • Issues
  • #33
Closed
Open
Issue created Nov 03, 2017 by 刘晨@thinkphpOwner

项目根目录外执行队列报错:Could not open input file: think

Created by: Zjmainstay

使用时候发现,如果不在项目根目录下运行会出现报错:Could not open input file: think,经排查发现,think-queue/src/queue/Listener.php Line 52 直接使用了 think作为命令名,导致think文件定位失败。

原代码:

        $this->workerCommand =
            '"' . PHP_BINARY . '" think queue:work --queue="%s" --delay=%s --memory=%s --sleep=%s --tries=%s';

建议修改为:

$this->workerCommand =
            '"' . PHP_BINARY . '" ' . ROOT_PATH . 'think queue:work --queue="%s" --delay=%s --memory=%s --sleep=%s --tries=%s';
Assignee
Assign to
Time tracking