Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

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

Open
doits opened this issue Jul 16, 2015 · 2 comments
Open

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

doits opened this issue Jul 16, 2015 · 2 comments

Comments

@doits
Copy link

doits commented Jul 16, 2015

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.)

@doits doits changed the title require 'dcell' already throws DCell::NotConfiguredError at the end require 'dcell' already throws DCell::NotConfiguredError at the end Jul 16, 2015
@niamster
Copy link
Contributor

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

@doits
Copy link
Author

doits commented Jul 16, 2015

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?)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants