Skip to content

Commit

Permalink
added notation for mysql servers in example
Browse files Browse the repository at this point in the history
  • Loading branch information
n0nag0n committed Sep 28, 2020
1 parent c1c2147 commit d9d889f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ See `example_worker.php` for file or see below:
$Job_Queue->watchPipeline('some_cool_pipeline_name');
while(true) {
$job = $Job_Queue->getNextJobAndReserve();

// adjust to whatever makes you sleep better at night (for database queues only, beanstalkd does not need this if statement)
if(empty($job)) {
// adjust to whatever makes you sleep better at night
usleep(500000);
continue;
}
Expand Down
3 changes: 2 additions & 1 deletion example_worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
$Job_Queue->watchPipeline('some_cool_pipeline_name');
while(true) {
$job = $Job_Queue->getNextJobAndReserve();

// adjust to whatever makes you sleep better at night (for database queues only, beanstalkd does not need this if statement)
if(empty($job)) {
// adjust to whatever makes you sleep better at night
usleep(500000);
continue;
}
Expand Down

0 comments on commit d9d889f

Please sign in to comment.