Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mautic.corals.io/vendor/pda/pheanstalk/src/Command/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mautic.corals.io/vendor/pda/pheanstalk/src/Command/KickCommand.php
<?php

namespace Pheanstalk\Command;

use Pheanstalk\Contract\ResponseParserInterface;
use Pheanstalk\Response\ArrayResponse;

/**
 * The 'kick' command.
 *
 * Kicks buried or delayed jobs into a 'ready' state.
 * If there are buried jobs, it will kick up to $max of them.
 * Otherwise, it will kick up to $max delayed jobs.
 */
class KickCommand extends AbstractCommand implements ResponseParserInterface
{
    private $max;

    /**
     * @param int $max The maximum number of jobs to kick
     */
    public function __construct(int $max)
    {
        $this->max = $max;
    }

    public function getCommandLine(): string
    {
        return 'kick '.$this->max;
    }

    /* (non-phpdoc)
     * @see ResponseParser::parseResponse()
     */
    public function parseResponse(string $responseLine, ?string $responseData): ArrayResponse
    {
        list($code, $count) = explode(' ', $responseLine);

        return $this->createResponse($code, [
            'kicked' => (int) $count,
        ]);
    }
}

Spamworldpro Mini