public function handle(JobDeleted $event)
    {
        if ($event->job->hasFailed()) {
            return;
        }

        $time = $this->watch->check($event->payload->id());

        $this->metrics->incrementQueue(
            $event->job->getQueue(), $time
        );

        $this->metrics->incrementJob(
            $event->payload->displayName(), $time
        );
    }
public function handle(JobDeleted $event)
    {
        if ($event->job->hasFailed()) {
            return;
        }

        $time = $this->watch->check($event->payload->id());

        $this->metrics->incrementQueue(
            $event->job->getQueue(), $time
        );

        $this->metrics->incrementJob(
            $event->payload->displayName(), $time
        );
    }
public function handle ( JobDeleted $ event ) { if ( $ event -> job -> hasFailed ( ) ) { return ; } $ time = $ this -> watch -> check ( $ event -> payload -> id ( ) ) ; $ this -> metrics -> incrementQueue ( $ event -> job -> getQueue ( ) , $ time ) ; $ this -> metrics -> incrementJob ( $ event -> payload -> displayName ( ) , $ time ) ; }
Stop gathering metrics for a job.

@param  \Laravel\Horizon\Events\JobDeleted  $event
@return void
Stop gathering metrics for a job .