Skip to content

Commit cbdca71

Browse files
author
ywisax
committed
update
1 parent ca44d79 commit cbdca71

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

demo/controllers/ApiController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public function actionGetUsers()
5050
public function actionTask()
5151
{
5252
//Task::pushTask("var_dump", [time()]);
53-
Task::pushTask("time");
53+
$id = Task::pushTask("time");
5454
//Task::pushTask('sleep', [10]);
55-
return time();
55+
return $id;
5656
}
5757
}

demo/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Yii::$app->params['workermanHttp']['demo'] = [
1010
'root' => __DIR__,
11-
'debug' => true,
11+
'debug' => false,
1212
'xhprofLink' => 'http://127.0.0.1/xhprof/xhprof_html/index.php?run={tag}&source=xhprof_test',
1313
// bootstrap文件, 只会引入一次
1414
'bootstrapFile' => [
@@ -24,13 +24,13 @@
2424
'host' => '127.0.0.1',
2525
'port' => 6677,
2626
// 配置参考 http://doc3.workerman.net/worker-development/property.html
27-
'count' => 1,
27+
'count' => 4,
2828
'name' => 'demo-http'
2929
],
3030
'task' => [
3131
'host' => '127.0.0.1',
3232
'port' => 6678,
33-
'count' => 1,
33+
'count' => 20,
3434
'name' => 'demo-task',
3535
],
3636
];

0 commit comments

Comments
 (0)