Skip to content

Commit 3b59fa5

Browse files
author
Chaitanya Kuber
committed
method comment changes
1 parent ef859b6 commit 3b59fa5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/Resque/Worker.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,15 @@ class Resque_Worker
5353
* @var Resque_Job Current job, if any, being processed by this worker.
5454
*/
5555
private $currentJob = null;
56-
56+
5757
/**
5858
* @var int Process ID of child worker processes.
5959
*/
6060
private $child = null;
6161

6262
/**
6363
* Return all workers known to Resque as instantiated instances.
64+
* @return array
6465
*/
6566
public static function all()
6667
{
@@ -192,12 +193,12 @@ public function work($interval = 5)
192193
$this->child = $this->fork();
193194

194195
// Forked and we're the child. Run the job.
195-
if($this->child === 0 || $this->child === false) {
196+
if ($this->child === 0 || $this->child === false) {
196197
$status = 'Processing ' . $job->queue . ' since ' . strftime('%F %T');
197198
$this->updateProcLine($status);
198199
$this->log($status, self::LOG_VERBOSE);
199200
$this->perform($job);
200-
if($this->child === 0) {
201+
if ($this->child === 0) {
201202
exit(0);
202203
}
203204
}
@@ -228,11 +229,12 @@ public function work($interval = 5)
228229
/**
229230
* Process a single job.
230231
*
231-
* @param object|null $job The job to be processed.
232+
* @param Resque_Job $job The job to be processed.
232233
*/
233234
public function perform(Resque_Job $job)
234235
{
235236
try {
237+
$this->log("afterFork being triggered", self::LOG_VERBOSE);
236238
Resque_Event::trigger('afterFork', $job);
237239
$job->perform();
238240
}

0 commit comments

Comments
 (0)