A lot of friends without sleeping

31 views
Skip to first unread message

GregD

unread,
Jan 26, 2015, 10:38:21 AM1/26/15
to twitter-...@googlegroups.com
I'd like to get a list of friends where the number is high and so hits the twitter rate limit.

I know there is an example here :-


But this involves sleeping - which I'd like to avoid in one of my heroku workers - since it could be doing other things while it waits.

What I'd prefer to do is to divide the job into multiple bite size pieces - and then use resque to execute the batches - using my gem https://github.com/pavoni/resque-rate_limited_queue to start and stop the queue.

To do this I'd need a 'start from' and 'count', so I can pick up where I left off from.

Any thoughts / pointers?
Reply all
Reply to author
Forward
0 new messages