krisleech / wisper-celluloid

Provides async event broadcasting to Wisper using Celluloid
MIT License
17 stars 4 forks source link

"Couldn't cleanly terminate all actors in 10 seconds" error when exiting console or starting tests #4

Open JoeZ99 opened 8 years ago

JoeZ99 commented 8 years ago

no special configuration. just gem 'wisper-celluloid' in your Gemfile

Rails 4.2.6

Ruby 2.2.0

enter the rails console

$./bin/rails c
Running via Spring preloader in process 20405
Loading development environment (Rails 4.2.6)
[1] pry(main)> exit
E, [2016-08-04T17:43:55.040738 #20405] ERROR -- : Couldn't cleanly terminate all actors in 10 seconds!
$

that's it. every time you exit the console, it tries to terminate "actors" for 10 seconds and finally throws an error.

No need to use the gem anywhere in the app. Just install it.

When testing, the same delay and error message,

$ rspec
Running via Spring preloader in process 20450
E, [2016-08-04T17:46:01.335538 #20450] ERROR -- : Couldn't cleanly terminate all actors in 10 seconds!
..................................
atcruice commented 8 years ago

Related issue: https://github.com/celluloid/celluloid/issues/696 Need to wait for celluloid v0.17.4 for the fix: https://github.com/celluloid/celluloid/issues/728

mdkalish commented 7 years ago

Looks pretty stale: https://github.com/celluloid/celluloid/commit/8d8f1d460d7916598da875291b8e5ea68f948d3a and https://github.com/celluloid/celluloid/commit/3444c6c9a8832caf3203146e6e9447bd06f92526 Or am I missing something?

krisleech commented 7 years ago

Latest stable is 0.17.3, I also see 0.18 prerelease, maybe it is fixed there.

krisleech commented 7 years ago

For 0.18.0.pre I get Celluloid is not yet started; use Celluloid.boot when running the specs, so it looks like some work will be needed.