正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -44,7 +44,6 @@ class CopyProject extends Command | @@ -44,7 +44,6 @@ class CopyProject extends Command | ||
| 44 | { | 44 | { |
| 45 | $projectModel = new Project(); | 45 | $projectModel = new Project(); |
| 46 | while (true) { | 46 | while (true) { |
| 47 | - $this->output('CopyProjectJob start, project_id: ' . $this->param['project_id']); | ||
| 48 | $list = NoticeLog::where('type', NoticeLog::TYPE_COPY_PROJECT)->where('status', NoticeLog::STATUS_PENDING)->get(); | 47 | $list = NoticeLog::where('type', NoticeLog::TYPE_COPY_PROJECT)->where('status', NoticeLog::STATUS_PENDING)->get(); |
| 49 | if(empty($list)){ | 48 | if(empty($list)){ |
| 50 | sleep(5); | 49 | sleep(5); |
| @@ -54,6 +53,7 @@ class CopyProject extends Command | @@ -54,6 +53,7 @@ class CopyProject extends Command | ||
| 54 | try { | 53 | try { |
| 55 | $data = $item['data']['project_id']; | 54 | $data = $item['data']['project_id']; |
| 56 | $old_project_id = $data['project_id']; | 55 | $old_project_id = $data['project_id']; |
| 56 | + $this->output('CopyProjectJob start, project_id: ' . $old_project_id); | ||
| 57 | $type = $data['type']; | 57 | $type = $data['type']; |
| 58 | $project_id = $this->copyProject($old_project_id); | 58 | $project_id = $this->copyProject($old_project_id); |
| 59 | $this->copyDeployBuild($old_project_id,$project_id); | 59 | $this->copyDeployBuild($old_project_id,$project_id); |
-
请 注册 或 登录 后发表评论