Permalink
Browse files

Worker resets its waiting time after successful job to be more respon…

…sive
  • Loading branch information...
1 parent 05049a2 commit be13df0d818536bce45050495be1183d109a504d Giorgio Sironi committed Mar 9, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/worker
View
@@ -42,7 +42,7 @@ while (!askedToStop()) {
);
}
($doneSomeWork) ?
- $waitStrategy->goForward() :
+ $waitStrategy->reset() :
$waitStrategy->wait()->backOff();
}
$worker->retire();

0 comments on commit be13df0

Please sign in to comment.