Added wrapping array() to args to improve compatibility with ruby resque

This commit is contained in:
warezthebeef 2011-07-21 15:49:18 +12:00
parent 2a73e5b390
commit f7eac3b5e7

View File

@ -63,7 +63,7 @@ class Resque_Job
$id = md5(uniqid('', true)); $id = md5(uniqid('', true));
Resque::push($queue, array( Resque::push($queue, array(
'class' => $class, 'class' => $class,
'args' => $args, 'args' => array($args),
'id' => $id, 'id' => $id,
)); ));
@ -128,7 +128,7 @@ class Resque_Job
return array(); return array();
} }
return $this->payload['args']; return array_shift($this->payload['args']);
} }
/** /**