wa0x6e / Cake-Resque

Resque plugin for CakePHP : for creating background jobs that can be processed offline later
MIT License
159 stars 56 forks source link

Scheduler Error #30

Closed llb0536 closed 10 years ago

llb0536 commented 10 years ago

in this repository, it has use the php-resque-ex. But it will meet a error while using Scheduler.

Error From: php-resque-ex Redisent line 73 the $args in this line is not quite structured. Error occur when use redis command ZRANGEBYSCORE .

The $args should be flatten to generate a proper redis protocol command.

wa0x6e commented 10 years ago

I don't quite understand your issue.

Where do you see the error ? In the logs ? When ? queuing or processing jobs ?

rodelta commented 10 years ago

I think he's referring to an error in redisent.php where an array is passed instead a string and it trows an error. I get this error when I try to schedule a job:

Warning Error: strlen() expects parameter 1 to be string, array given in [{path to app}/Plugin/CakeResque/vendor/kamisama/php-resque-ex/lib/Redisent/Redisent.php, line 148]
Notice Error: Array to string conversion in [{path to app}/Plugin/CakeResque/vendor/kamisama/php-resque-ex/lib/Redisent/Redisent.php, line 148]

maybe he's getting the same error.

It happens when I try to schedule a Job as "CakeResque::enqueueAt" and "CakeResque::enqueueIn"

wa0x6e commented 10 years ago

I see. I'm currently working on re-merging php-resque-ex into its original parent, so there'll be no more update on that side.

bar commented 10 years ago

Does this means that CakeResque will use the original php-resque-ex instead of a custom one?¿

wa0x6e commented 10 years ago

Yes

bar commented 10 years ago

Nice, thanks.