Re: Delayed Job not working

2010-03-26 Thread adeel...@gmail.com
So, still not sure why but, only on Heroku if I put a sleep 1 delay
around the Delayed::Job.enqueue statement in my controller, it works.
Running it in either dev or prod environments locally on my dev
machine always worked fine.


On Mar 20, 11:06 pm, "adeel...@gmail.com"  wrote:
> Ok let me know if I'm missing something...
>
> I have a pretty typical Paperclip file upload application that accepts
> user documents. I'm doing some processing on the docs that I want to
> delegate to a worker. Worker pull doc from S3 processes it and writes
> to the db. All works perfectly on local machine in development.
>
> So I deploy, migrate database and run 'heroku workers 1'. The logs
> show DJ process started ok. But nothing is going to the worker when I
> upload a document.
>
> 'Delayed::Job.find(:first)' in the console always shows nil.
>
> This should be pretty straightforward. Am I missing something?
> Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Delayed Job not working

2010-03-20 Thread adeel...@gmail.com
Ok let me know if I'm missing something...

I have a pretty typical Paperclip file upload application that accepts
user documents. I'm doing some processing on the docs that I want to
delegate to a worker. Worker pull doc from S3 processes it and writes
to the db. All works perfectly on local machine in development.

So I deploy, migrate database and run 'heroku workers 1'. The logs
show DJ process started ok. But nothing is going to the worker when I
upload a document.

'Delayed::Job.find(:first)' in the console always shows nil.

This should be pretty straightforward. Am I missing something?
Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: TweetStream

2010-03-08 Thread adeel...@gmail.com
Jim - Interesting, is the problem with the search API the rate-
limiting? missed tweets? API timeouts?


- Adeel

On Mar 7, 3:37 pm, Jim Gilliam  wrote:
> I run two apps dependent on the Twitter streaming API, so I set up stream
> processing on a separate EC2 instance, posting the data via HTTP to the
> appropriate Heroku app.
>
> I don't like this set up for exactly the reason you specified, but I figure
> Heroku will have a solution eventually, so I'm just sitting tight.
>
> And, FWIW, if you want anything even close to reliability in the tweet
> stream, you have to use the streaming API.  The search API is almost
> worthless.
>
> Jim
>
>
>
> On Thu, Mar 4, 2010 at 1:39 PM, Josh Cheek  wrote:
> > Hi, Twitter has a streaming API now, where you have a process that just
> > remains connected, and they push updates to your code as they occur.
> >http://apiwiki.twitter.com/Streaming-API-Documentation
>
> > I found a gem for it called TweetStream
> >http://github.com/intridea/tweetstream
> > But if you run it, it will never complete, because it has to stay connected
> > to Twitter.
>
> > So they have a class, TweetStream::Daemons, that will let you run it in the
> > background, using the daemons gem, which heroku has installed
> >http://installed-gems.heroku.com/
>
> > Anyway, this is what I am looking at right now, but it seems like I'll have
> > to have another dyno constantly running to handle the stream from Twitter,
> > which gets a little bit expensive, but is manageable. The problem is that I
> > want to also have it stream in posts for a given user, as well as watching
> > for a hash tag, which are two different types of connections (follow vs
> > track), so then I would need another dyno again to have it follow the user.
> > And, of course, if I wanted to monitor the daemons to restart them if they
> > go down, that would be yet another dyno.
>
> > I'm curious what other developers are doing to integrate with Twitter, are
> > you guys using the streaming API? Do you have it set up through cron?
> > Something else that I haven't thought of?
>
> > I'm just not sure what the best approach is to integrate in this manner
> > (I'd like it to be near real time, which is why I am leaning towards the
> > streaming api).
>
> > I was also thinking maybe set up another computer to just run the daemons,
> > then whenever it gets a request, have it post the request to my app. Which
> > seems viable, but it means that the site isn't self-contained, and now I
> > have to maintain hardware also, so I'd prefer to do it all through heroku.
>
> > Anyway, just looking for community input on what other people have found
> > that works, or thoughts of better ways to solve the issue.
>
> > Thanks
> > -Josh
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Heroku" group.
> > To post to this group, send email to her...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > heroku+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/heroku?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Varnish support for ESI?

2010-01-11 Thread adeel...@gmail.com
Wondering if Heroku's Varnish implementation supports Edge Side
Include. That would allow us to define fragments to be cached instead
of caching the whole page. Good for sites that show user login/logout
status at the top of the page.
Thanks.
-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.