musicglue/sidekiq-job-pusher

There is no license information available for the latest version (dev-master) of this package.

PHP client to interface with Sidekiq

dev-master 2013-11-07 14:36 UTC

This package is not auto-updated.

Last update: 2024-11-18 14:36:20 UTC


README

Basic usage:

$redis = new Predis\Client();

$sidekiq = new SidekiqJobPusher\Client($redis);

$sidekiq->perform('TestWorker');

Advanced usage:

$redis = new Predis\Client(array(
	'host' => 'localhost',
	'port' => '6379',
	'database' => 12,
));

$sidekiq = new SidekiqJobPusher\Client($redis, 'my-namespace');

$args = array('arg1', 'arg2');
$retry = true;
$queue = 'my-queue';

$sidekiq->perform('TestWorker', $args, $retry, $queue);