You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use dev-master in product, I found some job hasn't been pushed to queue,but Resque::enqueue() still returned a success token.
It seems that Resque::enqueue won't return false if failed to push job to queue.
I read the source code :
Job.php lines 60:
`
public static function create($queue, $class, $args = null, $monitor = false, $id = null)
{
if (is_null($id)) {
$id = Resque::generateJobId();
}
if($args !== null && !is_array($args)) {
throw new InvalidArgumentException(
'Supplied $args must be an array.'
);
}
Resque::push($queue, array(
'class' => $class,
'args' => array($args),
'id' => $id,
'queue_time' => microtime(true),
));
if($monitor) {
Resque_Job_Status::create($id);
}
return $id;
}
`
if Resque::push() fails , it will return false
but in this function ,it won't check if result is false.
The text was updated successfully, but these errors were encountered:
I use dev-master in product, I found some job hasn't been pushed to queue,but Resque::enqueue() still returned a success token.
It seems that Resque::enqueue won't return false if failed to push job to queue.
I read the source code :
Job.php lines 60:
`
`
if Resque::push() fails , it will return false
but in this function ,it won't check if result is false.
The text was updated successfully, but these errors were encountered: