binarymatt / pyres

a resque clone in python
http://github.com/binarydud/pyres
MIT License
955 stars 130 forks source link

delayed_queue_schedule_size() returns incorrect value #46

Closed adamcharnock closed 13 years ago

adamcharnock commented 13 years ago

It seems that delayed_queue_schedule_size() relies on the cardinality of the resque:delayed_queue_schedule ZSET. This means that any jobs that occur within the same second/timestamp will only be counted as a single job, thereby producing an incorrect return value.

binarymatt commented 13 years ago

I just verified this and hope to have a fix in master this evening.

binarymatt commented 13 years ago

I've put a fix up into master and will be releasing the 0.9.1 version to pypi soon.

adamcharnock commented 13 years ago

Fantastic, thank you very much!