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
  • Merge requests
  • !34

fixes #33 queue:listen 模式下,worker 子进程的 cwd 异常的bug

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged 刘晨 requested to merge coolseven:patch-1 into master Nov 04, 2017
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: coolseven

worker 进程是由 think-queue/src/queue/Listener.php 类通过 makeProcess() 方法创建的.
在 makeProcess() 方法中, worker 进程的 cwd 被设置为 Listener 对象的 $commandPath 属性的值.
而 Listener 对象是由 think-queue/src/queue/command/Listen.php 创建的,且 Listener 对象的 commandPath 属性被设置为脚本执行时的 cwd .
因此导致 bug https://github.com/top-think/think-queue/issues/33 中的问题.

本PR中,创建 Listener 对象时,其commandPath属性被设置为项目根目录,而不是脚本运行时的cwd.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: coolseven:patch-1