Queue Job Debounced Event (Events/JobDebounced.php)

framework · src/Illuminate/Queue/Events/JobDebounced.php · php · MIT
infra, fw:laravel, tag:event, tag:debounce

Dispatched when a queued job is debounced, signalling the job was skipped due to recent execution. Listen to this event to handle or log debounced jobs in queue workers.

// Source: https://github.com/laravel/framework | License: MIT | Copyright Taylor Otwell
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace Illuminate\Queue\Events;

class JobDebounced
{
    /**
     * Create a new event instance.
     *
     * @param  string  $connectionName
     * @param  \Illuminate\Contracts\Queue\Job  $job
     * @param  mixed  $command
     */
    public function __construct(
        public $connectionName,
        public $job,
        public $command,
    ) {
    }
}

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key