File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 88
99Yii::$ 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 ' => [
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];
You can’t perform that action at this time.
0 commit comments