musicglue / sidekiq-job-pusher
PHP client to interface with Sidekiq
Installs: 15 770
Dependents: 0
Suggesters: 1
Security: 0
Stars: 14
Watchers: 14
Forks: 9
Open Issues: 1
Requires
- php: >=5.3.3
- predis/predis: 0.8.*@dev
Requires (Dev)
- phpunit/phpunit: 3.7.*
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);