Resque_Worker::doneWorking PHP Method

doneWorking() public method

Notify Redis that we've finished working on a job, clearing the working state and incrementing the job stats.
public doneWorking ( )
    public function doneWorking()
    {
        $this->currentJob = null;
        Resque_Stat::incr('processed');
        Resque_Stat::incr('processed:' . (string) $this);
        Resque::redis()->del('worker:' . (string) $this);
    }

Usage Example

 public function doneWorking()
 {
     $job = $this->job();
     sfResque::remove_track_queue($job['queue'], sfResque::tokenize($job['payload']['class'], $job['payload']['args']));
     return parent::doneWorking();
 }
All Usage Examples Of Resque_Worker::doneWorking