On Wed, Apr 7, 2010 at 8:20 PM, Asier <[email protected]> wrote:
> El 07/04/2010 13:12, Torsten Schönebaum escribió:
>
>> [no running worker using rackup and its default config file in ruote-kit]
>>
>>> Seems to be a problem with JRuby :-?
>>
>> Did some tests (all on Ubuntu Karmic Koala) and came to the same
>> conclusion: There's an issue with JRuby.
>>
>> Latest REE is working fine.
>>
>> JRuby 1.4.0 starts the rack, but there's a java exception:
>> <http://gist.github.com/358717>
>
> Yes, I get exactly the same exception.
>
> I ignored it because in java world exceptions (ironic, true?) are so common
> that the rule is "if it runs the exception was /recoverable/"

Hi Asier,

please do not ignore exceptions with us, that will save precious time.

The Ruote::FsStorage relies on file locks to prevent multiple workers
from trampling each other. Of course, locks are not necessary if you
have a single worker.

Use the 'cloche_nolock' option when running with JRuby, like in :

---8<---
$engine = Ruote::Engine.new(Ruote::Worker.new(Ruote::FsStorage.new('work',
'cloche_nolock' => true)))
--->8---

see

  
http://groups.google.com/group/openwferu-users/browse_thread/thread/d82516ed3bdd8f23/078a876372680fa2

in RuoteKit, that would translate to something like :

---8<---
RuoteKit.configure do |c|

  c.run_worker = true

  c.set_storage(Ruote::FsStorage, 'work_test', 'cloche_nolock' => true)

  c.register do
    catchall Ruote::StorageParticipant
  end
end
--->8---


Best regards,

-- 
John Mettraux   -   http://jmettraux.wordpress.com

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to