Skip to content

Redis::zRangeByScore() expects at most 4 parameters, 6 given #8

@nhnFreespirit

Description

@nhnFreespirit

Crashes for me with error in subj. when trying to start worker.

Changing /lib/ResqueScheduler.php line 226 to

$items = Resque::redis()->zrangebyscore('delayed_queue_schedule', '-inf', $at, array("limit" => array(0, 1)));

fixes it for me.

This also better corresponds to the docs in https://github.com/nicolasff/phpredis#zrangebyscore-zrevrangebyscore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions