PHP code example of bigcommerce / php-resque-pause
1. Go to this page and download the library: Download bigcommerce/php-resque-pause library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bigcommerce / php-resque-pause example snippets
// Let's put it in a global since that's easy/familiar
$GLOBALS['ResquePause'] = new \Resque\Plugins\Pause(); // Your enqueues are now being listened to
$GLOBALS['ResquePause']->pause('My_Queue');
$GLOBALS['ResquePause']->resume('My_Queue');
$GLOBALS['ResquePause']->isPaused('My_Queue');