for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WP_Queue\Connections;
use Exception;
use WP_Queue\Job;
class SyncConnection implements ConnectionInterface {
/**
* Execute the job immediately without pushing to the queue.
*
* @param Job $job
* @param int $delay
* @return bool|int
*/
public function push(Job $job, $delay = 0) {
$job->handle();
return true;
}
* Retrieve a job from the queue.
* @return bool|Job
public function pop() {
return false;
* Delete a job from the queue.
* @return bool
public function delete($job) {
* Release a job back onto the queue.
public function release($job) {
* Push a job onto the failure queue.
* @param Exception $exception
public function failure($job, Exception $exception) {
* Get total jobs in the queue.
* @return int
public function jobs() {
return 0;
* Get total jobs in the failures queue.
public function failed_jobs() {