Skip to content

Commit

Permalink
Rebase v1.9.1 with master
Browse files Browse the repository at this point in the history
  • Loading branch information
gotzmann committed Jun 14, 2021
1 parent 9ba8c82 commit 434dafd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Comet.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,9 @@ public function run()
$worker->onWorkerStart = self::$init;

// Init JOB workers
$counter = 0;
foreach (self::$jobs as $job) {
$w = new Worker('text://' . self::$host . ':' . 65432);
$w = new Worker('text://' . self::$host . ':' . strval(65432 + $counter++));
$w->count = $job['workers'];
$w->name = 'Comet v' . self::VERSION .' [job] ' . $job['name'];
$w->onWorkerStart = function() use ($job) {
Expand Down

0 comments on commit 434dafd

Please sign in to comment.