Skip to content

Commit

Permalink
Using waitSecondsIfNoQueue to save CPU (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
madeadi authored and petrabarus committed Jul 11, 2017
1 parent e92567d commit 6b25b34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ return [
'queue' => [
'class' => 'UrbanIndo\Yii2\Queue\Console\Controller',
//'sleepTimeout' => 1
//'waitSecondsIfNoQueue' = 10
],
],
];
Expand Down Expand Up @@ -92,6 +91,8 @@ Or using Database queue
'db' => 'db',
'tableName' => 'queue',
'module' => 'task',
// sleep for 10 seconds if there's no item in the queue (to save CPU)
'waitSecondsIfNoQueue' => 10,
]
]
```
Expand Down

0 comments on commit 6b25b34

Please sign in to comment.