Asynchronous job processing

Hello,

I’m currently looking for a way to spawn a long-running process in the
background with some hooks to get the progress for instance. In MRI this
can be done using backgrounDRb. How can I achievo such a thing in Jruby?

Regards,
Andres


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I tried, but as with some older versions of backgrounDRb it uses ‘fork’
to
spawn another thread. I know this can be enabled in Jruby but this is
not
recommened. Any alternatives?

2008/7/8 Chuck R. [email protected]:

On Jul 8, 2008, at 12:16 PM, Andres K. wrote:

Hello,

I’m currently looking for a way to spawn a long-running process in
the background with some hooks to get the progress for instance. In
MRI this can be done using backgrounDRb. How can I achievo such a
thing in Jruby?

I’m pretty sure you can use backgrounDRb with jruby too. If I recall,
‘packet’ which is the reactor engine at the core of backgroundrb is
pure ruby. I am not aware of any C components in that lib so it may
“just work” with jruby. Give it a try and let us know.

cr


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

2008/7/8 Andres K. [email protected]:

I tried, but as with some older versions of backgrounDRb it uses ‘fork’ to
spawn another thread. I know this can be enabled in Jruby but this is not
recommened. Any alternatives?

Activemessaging with some JMS or Stomp enabled server, e.g. Apache
Active MQ
http://code.google.com/p/activemessaging/wiki/ActiveMessaging

Haven’t tried it with jruby, but works great for long running
processes on MRI + Rails.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

You may also try ruffus-scheduler if you want a pure thread-based
(native
threads in jruby!) alternative.

On Tue, Jul 8, 2008 at 5:22 PM, Christian S. [email protected]
wrote:

can be done using backgrounDRb. How can I achievo such a thing in Jruby?

http://xircles.codehaus.org/manage_email


Fabio K.
http://www.fabiokung.com

Caelum - Ensino e Soluções em Computação
http://www.caelum.com.br

With rufus-scheduler I could start a job with schedule_in(1s), but is it
possible to use any hooks that will read the progress of the job?

As for JMS, I found the activemessaging plugin on code.google.com and
understand how I could start a job. But also here the question, is there
a way to read variables from a running job (eg. the progress)?

Regards

I’m quite happily using activemessaging and JMS (ActiveMQ)

Andres K. wrote:


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


View this message in context:
http://www.nabble.com/Asynchronous-job-processing-tp18344430p18348238.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

It’s true, active messaging will work with JRuby - specific code added
to it
for that.
It even got some bit written about using it with JRuby, I think in Ola’s
book.

Anyway, if you give it a try and have problems figuring it out, mail the
list; the authors of the JRuby support for it will be listening.

-Andrew K.

mikef wrote:

http://code.google.com/p/activemessaging/wiki/ActiveMessaging


View this message in context:
http://www.nabble.com/Asynchronous-job-processing-tp18344430p18363265.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs