Created
September 16, 2013 17:23
-
-
Save benmanns/6583712 to your computer and use it in GitHub Desktop.
A comparison of Python RQ to Ruby Resque's Redis data format.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RQ | |
redis 127.0.0.1:6379> TYPE rq:queue:default | |
list | |
redis 127.0.0.1:6379> RPOP rq:queue:default | |
"3662e57b-0188-4b78-982c-6904058242d8" | |
redis 127.0.0.1:6379> TYPE rq:job:3662e57b-0188-4b78-982c-6904058242d8 | |
hash | |
redis 127.0.0.1:6379> HGETALL rq:job:3662e57b-0188-4b78-982c-6904058242d8 | |
1) "created_at" | |
2) "2013-09-16T17:18:16.400954+00:00" | |
3) "origin" | |
4) "default" | |
5) "data" | |
6) "(S'my_module.count_words_at_url'\np1\nN(S'http://nvie.com'\np2\ntp3\n(dp4\nt." | |
7) "enqueued_at" | |
8) "2013-09-16T17:18:16.400985+00:00" | |
9) "timeout" | |
10) "180" | |
11) "description" | |
12) "my_module.count_words_at_url('http://nvie.com')" | |
13) "status" | |
14) "queued" | |
# Resque | |
redis 127.0.0.1:6379> SMEMBERS resque:queues | |
1) "test" | |
redis 127.0.0.1:6379> TYPE resque:queue:test | |
list | |
redis 127.0.0.1:6379> RPOP resque:queue:test | |
"{\"class\":\"Test\",\"args\":[\"http://nvie.com\"]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment