mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Added wrapping array() to args to improve compatibility with ruby resque
This commit is contained in:
parent
2a73e5b390
commit
f7eac3b5e7
1 changed files with 3 additions and 3 deletions
|
@ -63,7 +63,7 @@ class Resque_Job
|
|||
$id = md5(uniqid('', true));
|
||||
Resque::push($queue, array(
|
||||
'class' => $class,
|
||||
'args' => $args,
|
||||
'args' => array($args),
|
||||
'id' => $id,
|
||||
));
|
||||
|
||||
|
@ -128,7 +128,7 @@ class Resque_Job
|
|||
return array();
|
||||
}
|
||||
|
||||
return $this->payload['args'];
|
||||
return array_shift($this->payload['args']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -248,4 +248,4 @@ class Resque_Job
|
|||
return '(' . implode(' | ', $name) . ')';
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue