Well, since you pay for workers by the hour, I'm sure Heroku would be
perfectly happy with you keeping many of them busy for a very long
time.



On Dec 7, 10:44 pm, Jonas <jo...@jonasbnielsen.dk> wrote:
> Nice. So that was actually what I initially thought.
> And there is no limitation on what that worker does? I mean, it's okay
> to preoccupy that worker till eternity? :)
>
> On 7 Dec., 20:53, David Dollar <da...@heroku.com> wrote:
>
>
>
>
>
>
>
> > A Heroku worker is simply running "rake jobs:work" on your app so whatever 
> > happens behind that rake task is up to your app.
>
> > On Dec 7, 2010, at 10:47 AM, Jonas <jo...@jonasbnielsen.dk> wrote:
>
> > > Hi guys,
>
> > > Hi guys,
>
> > > Ok, so I've succesfully developed a daemon that fires up EventMachine,
> > > subscribe to a data feed and communicate that data to Pusherapp.com
>
> > > Everything is working beautifully in production on my OSX development
> > > machine, and now I want to deploy to Heroku. My initial understanding
> > > was that the Heroku workers would suite this purpose well, however
> > > I've come to realize that I might be wrong.
>
> > > My question is, how do I run a daemon in the Heroku environment?
>
> > > Some facts:
>
> > > Ruby 1.9.2
> > > bamboo-mri-1.9.2 (beta)
> > > Rails3
> > > Daemons gem:https://rubygems.org/gems/daemons
> > > The deamon_generator plugin:https://github.com/dougal/daemon_generator
> > > An old Railscast that describes approx. how a daemon like this is set
> > > up:http://railscasts.com/episodes/129-custom-daemon
>
> > > How the daemon works:
> > > I've setup a rake task to start the daemon, briefly, this is the
> > > process:
> > > 1. Rake task calls "lib/daemons/my_daemon_ctl start"
> > > 2. Require some gems and start daemon: Daemons.run
> > > File.dirname(__FILE__) + "/my_daemon.rb", options
> > > 3. Loads rails env and starts the EventMachine reactor:
> > > EventMachine::run { data feed and pusherapp black magic here }
>
> > > --
> > > 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 
> > > athttp://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.

Reply via email to