chrisboulton / php-resque-scheduler

An addon for php-resque that lets you queue jobs for execution some time in the future. Follows resque-scheduler.
MIT License
271 stars 129 forks source link

removePrefix not available on php-resque "<1.3" #22

Open serpro opened 10 years ago

serpro commented 10 years ago

On line 115 of https://github.com/chrisboulton/php-resque-scheduler/blob/1.1/lib/ResqueScheduler.php#L115 you can see

$key=$redis->removePrefix($key);

But then the composer.json file says:

"require": {
                "chrisboulton/php-resque": "< 1.3"
        }

The removePrefix method (and others) are only available at the moment in the master branch, and it's never going to work with versions lower than 1.3 of php-resque.

danhunsaker commented 10 years ago

I've created an issue on PHP Resque which should fix this. It's been so long since any of us actually worked on 1.2 that we've forgotten what was available, and what wasn't added until shortly after the release was tagged.