mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Change arguments for jobs to an array instead of an object. Also change other json encoded items to decode to an array rather than objects
This commit is contained in:
parent
7ef1ebbd97
commit
c5396f4e86
10 changed files with 81 additions and 78 deletions
|
@ -7,12 +7,12 @@ require '../lib/Resque.php';
|
|||
date_default_timezone_set('GMT');
|
||||
Resque::setBackend('127.0.0.1:6379');
|
||||
|
||||
$class = new stdClass;
|
||||
$class->test = 'test';
|
||||
|
||||
$args = new stdClass;
|
||||
$args->time = time();
|
||||
$args->class = $class;
|
||||
$args = array(
|
||||
'time' => time(),
|
||||
'array' => array(
|
||||
'test' => 'test',
|
||||
),
|
||||
);
|
||||
|
||||
$jobId = Resque::enqueue('default', $argv[1], $args, true);
|
||||
echo "Queued job ".$jobId."\n\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue