Queue Monitor Interface (Queue/Monitor.php)

framework · src/Illuminate/Contracts/Queue/Monitor.php · php · MIT
automation, infra, lang:php, fw:laravel

Defines lifecycle hooks for monitoring daemon queue processes, such as starting, looping, and failing. Use this to implement custom queue observability.

// 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\Contracts\Queue;

interface Monitor
{
    /**
     * Register a callback to be executed when a daemon queue is starting.
     *
     * @param  mixed  $callback
     * @return void
     */
    public function starting($callback);

    /**
     * Register a callback to be executed on every iteration through the queue loop.
     *
     * @param  mixed  $callback
     * @return void
     */
    public function looping($callback);

    /**
     * Register a callback to be executed when a job fails after the maximum number of retries.
     *
     * @param  mixed  $callback
     * @return void
     */
    public funct

... (truncated -- full source via MCP)

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

Get a free API key