We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b0f9dc commit 9415524Copy full SHA for 9415524
lib/Resque/Worker.php
@@ -186,8 +186,8 @@ public function work($interval = 5)
186
187
$this->child = Resque::fork();
188
189
- // Forked and we're the child. Run the job.
190
- if ($this->child === 0 || $this->child === false) {
+ // Forked and we're the child. Or this is Windows. Run the job.
+ if ($this->child === 0 || $this->child === false || strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
191
$status = 'Processing ' . $job->queue . ' since ' . strftime('%F %T');
192
$this->updateProcLine($status);
193
$this->log($status, self::LOG_VERBOSE);
0 commit comments