Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ywisax committed Dec 6, 2016
1 parent ca44d79 commit cbdca71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions demo/controllers/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public function actionGetUsers()
public function actionTask()
{
//Task::pushTask("var_dump", [time()]);
Task::pushTask("time");
$id = Task::pushTask("time");
//Task::pushTask('sleep', [10]);
return time();
return $id;
}
}
6 changes: 3 additions & 3 deletions demo/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Yii::$app->params['workermanHttp']['demo'] = [
'root' => __DIR__,
'debug' => true,
'debug' => false,
'xhprofLink' => 'http://127.0.0.1/xhprof/xhprof_html/index.php?run={tag}&source=xhprof_test',
// bootstrap文件, 只会引入一次
'bootstrapFile' => [
Expand All @@ -24,13 +24,13 @@
'host' => '127.0.0.1',
'port' => 6677,
// 配置参考 http://doc3.workerman.net/worker-development/property.html
'count' => 1,
'count' => 4,
'name' => 'demo-http'
],
'task' => [
'host' => '127.0.0.1',
'port' => 6678,
'count' => 1,
'count' => 20,
'name' => 'demo-task',
],
];
Expand Down

0 comments on commit cbdca71

Please sign in to comment.