src/Shell/CakeResqueShell.php
public function cleanup()
    {
        $actionMessage = function ($pid) {
            return __d('cake_resque', 'Cleaning up {0} ... ', $pid);
        };

        $successCallback = function ($worker) {
        };

        return $this->_sendSignal(
            __d('cake_resque', 'Cleaning up workers'),
            CakeResque::getWorkers(),
            __d('cake_resque', 'There is no active workers to clean up ...'),
            __d('cake_resque', 'Active workers list'),
            __d('cake_resque', 'Clean up all workers'),
            __d('cake_resque', 'Worker to Cleanup'),
            __d('cake_resque', 'Cleaning up the Scheduler Worker ... '),
            $actionMessage,
            null,
            $successCallback,
            'USR1'
        );
    }
public function cleanup()
    {
        $actionMessage = function ($pid) {
            return __d('cake_resque', 'Cleaning up {0} ... ', $pid);
        };

        $successCallback = function ($worker) {
        };

        return $this->_sendSignal(
            __d('cake_resque', 'Cleaning up workers'),
            CakeResque::getWorkers(),
            __d('cake_resque', 'There is no active workers to clean up ...'),
            __d('cake_resque', 'Active workers list'),
            __d('cake_resque', 'Clean up all workers'),
            __d('cake_resque', 'Worker to Cleanup'),
            __d('cake_resque', 'Cleaning up the Scheduler Worker ... '),
            $actionMessage,
            null,
            $successCallback,
            'USR1'
        );
    }
public function cleanup ( ) { $ actionMessage = function ( $ pid ) { return __d ( 'cake_resque' , 'Cleaning up {0} ... ' , $ pid ) ; } ; $ successCallback = function ( $ worker ) { } ; return $ this -> _sendSignal ( __d ( 'cake_resque' , 'Cleaning up workers' ) , CakeResque :: getWorkers ( ) , __d ( 'cake_resque' , 'There is no active workers to clean up ...' ) , __d ( 'cake_resque' , 'Active workers list' ) , __d ( 'cake_resque' , 'Clean up all workers' ) , __d ( 'cake_resque' , 'Worker to Cleanup' ) , __d ( 'cake_resque' , 'Cleaning up the Scheduler Worker ... ' ) , $ actionMessage , null , $ successCallback , 'USR1' ) ; }
Clean up workers.

On supported system, will ask the user to choose the worker to clean up, from
a list of workers, if more than one worker is running, or if --all is not passed.

Clean up will immediately terminate a worker child. Job is left unfinished.

@since 2.0.0
@return void
@see CakeResqueShell::_sendSignal()
Clean up workers .