Hi guys,
I'm having quite a bit of issues with an EM.defer that stops being
executed after a short period on time - but only in production on
Heroku. Here's a brief example of the defer with callback: (https://
gist.github.com/838411)
# Inside EM::Connection 'receive_data(d)' loop
logger.debug "New price received"
extraction = proc {
logger.debug "Extracting price info"
extract_price_information(response) # Use libxml to match response
with an XML-schema and extract values
}
callback = proc { |price|
push_to_pusher(price) # Uses pusherapp to broadcast price (async)
}
EM.defer(extraction, callback)
The code is running on a worker that starts the EM reactor loop from
jobs:work. Data is received 5-10 times per second.
Any ideas on what would cause this? I'm pretty sure none of the
functions are blocking, as everything works fine on my development
machine.
To clarify: 'New price received' is printed when valid data is
received, but after a minute or two of running, the procs stops
executing.
Thanks!
Jonas
--
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.