public function completed(JobPayload $payload, $failed = false)
    {
        if ($payload->isRetry()) {
            $this->updateRetryInformationOnParent($payload, $failed);
        }

        $this->connection()->pipeline(function ($pipe) use ($payload, $failed) {
            $this->markJobAsCompleted($pipe, $payload->id(), $failed);
        });
    }
public function completed(JobPayload $payload, $failed = false)
    {
        if ($payload->isRetry()) {
            $this->updateRetryInformationOnParent($payload, $failed);
        }

        $this->connection()->pipeline(function ($pipe) use ($payload, $failed) {
            $this->markJobAsCompleted($pipe, $payload->id(), $failed);
        });
    }
public function completed ( JobPayload $ payload , $ failed = false ) { if ( $ payload -> isRetry ( ) ) { $ this -> updateRetryInformationOnParent ( $ payload , $ failed ) ; } $ this -> connection ( ) -> pipeline ( function ( $ pipe ) use ( $ payload , $ failed ) { $ this -> markJobAsCompleted ( $ pipe , $ payload -> id ( ) , $ failed ) ; } ) ; }
Handle the storage of a completed job.

@param  \Laravel\Horizon\JobPayload  $payload
@param  bool  $failed
@return void
Handle the storage of a completed job .