celluloid / dcell

UNMAINTAINED: See celluloid/celluloid#779 - Actor-based distributed objects in Ruby based on Celluloid and 0MQ
http://celluloid.io
MIT License
595 stars 65 forks source link

`require 'dcell'` already throws `DCell::NotConfiguredError` at the end #104

Open doits opened 9 years ago

doits commented 9 years ago

Having a simple script with one line:

require 'dcell'

already gives the following error when the script terminates:

DCell::NotConfiguredError: please configure DCell with DCell.setup

I'd expect it to do nothing until I call something like DCell.start or try to use is (DCell::Node.all etc.). (Happens for me in Rails when I run a rake task: I want to skip DCell completely then, but it always throws this error at the end of the script.)

niamster commented 9 years ago

@doits can you please mention the version of DCell you are using and a provide a simple test scenario? Thanks

doits commented 9 years ago

I was at 0.16.*, using master now and this does not terminate like this.

Testcase is simply a script with one line:

require 'dcell'

On master this now gives

D, [2015-07-16T19:20:08.589852 #96773] DEBUG -- : Terminating 4 actors...

Not sure what it is doing (because I did not start anything, so what has to be terminated?)