couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <robert.new...@gmail.com>
Subject Re: External process - Having trouble Half the time
Date Sun, 13 Feb 2011 16:37:09 GMT
can you paste the full script?

the most common mistake is to forget to loop. an external handler is
expected to stay running for lots of requests, not exit on every
request like CGI.

B.

On 13 February 2011 15:55, Amine BENHAMZA <amine.benhamza@gmail.com> wrote:
> Hello Guys,
>
> I'm working to launch an external process (ruby script) from couchdb. Half
> the time, I have this error : "error":"{noproc,{gen_server,call, (i omit the
> rest). The full log is here : https://gist.github.com/824762
>
> I'm launching the external process this way :
> http://127.0.0.1:5984/trends_monitoring3/_rts
>
> The code I'm running aims to add a Job to Resque queue (
> https://github.com/defunkt/resque) as done below :
>
> STDOUT.puts "{" + '"code":200' + "," +
> '"headers":{"Content-Type":"Content-Type"}' + "," + '"json":{}' + "}"
>
> module Demo
>  Resque.enqueue(Job, params)
> end
>
> STDOUT.flush
>
> Did someone face this issue ? Have you any idea about what could cause this
> ?
>
> Thanks
>
> Amine.
>

Mime
View raw message