Just to clarify what David said, you should use something like: https://gist.github.com/84fc3c6f2ee21c3ef9b2
I've logged to stdout, which is what you would do if your were using the new logging feature (highly recommended for background work): http://blog.heroku.com/archives/2010/12/13/logging/ - Mark On Dec 15, 4:32 am, Jonas <[email protected]> wrote: > Hi guys, > > So I've been having some issues running an eventmachine worker on > Heroku. After some tedious debugging I realized that it didn't appear > to be what the event machine was doing that caused the problem. A > simple eventmachine loops that does nothing but logging a tick every > second is killed as well. > > My problem: > The eventmachine process is being terminated within 15 seconds from > start. A SystemExit exception is thrown. > > My setup: > The rake task jobs:work uses the daemons gem to start a new daemon > that runs the eventmachine reactor. > > Here is the three simple files > used:https://gist.github.com/061ab6973843c31dace3 > And the logged output:https://gist.github.com/b7beaeed48b8059efc4b > > What makes it this difficult to have an EM-process running? > > It's running perfectly on a local machine, of course. > > Cheers -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
