/**
  * Increases "Worker.jobs.done", "Worker.jobs.done.{tube-identifier} and adds the running-time of the job as
  * "Worker.jobs.time" and "Worker.jobs.time.{tube-identifier}" to statistics.
  * Gets triggered when a job is done.
  *
  * @param \DigitalPioneers\PheanstalkBundle\DependencyInjection\Events\JobDoneEvent $event
  */
 public function onJobDone(JobDoneEvent $event)
 {
     $jobTime = $event->getTime() - $this->jobStartedTime;
     $this->statisticsClient[] = "->increment('Worker.jobs.done')";
     $this->statisticsClient[] = "->increment('Worker.jobs.done.'" . $event->getTube() . ")";
     $this->statisticsClient[] = "->timing('Worker.jobs.time', . {$jobTime} * 1000)";
     $this->statisticsClient[] = "->timing('Worker.jobs.time.' . {$event->getTube}(), {$jobTime} * 1000)";
 }
 /**
  * Increases "Worker.jobs.done", "Worker.jobs.done.{tube-identifier} and adds the running-time of the job as
  * "Worker.jobs.time" and "Worker.jobs.time.{tube-identifier}" to statistics.
  * Gets triggered when a job is done.
  *
  * @param \DigitalPioneers\PheanstalkBundle\DependencyInjection\Events\JobDoneEvent $event
  */
 public function onJobDone(JobDoneEvent $event)
 {
     $jobTime = $event->getTime() - $this->jobStartedTime;
     $this->statsd->increment('Worker.jobs.done');
     $this->statsd->increment('Worker.jobs.done.' . $event->getTube());
     $this->statsd->timing('Worker.jobs.time', $jobTime * 1000);
     $this->statsd->timing('Worker.jobs.time.' . $event->getTube(), $jobTime * 1000);
 }