Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devise_async strange redis log #69

Open
rizalmuthi opened this issue Mar 12, 2015 · 1 comment
Open

devise_async strange redis log #69

rizalmuthi opened this issue Mar 12, 2015 · 1 comment

Comments

@rizalmuthi
Copy link

Hi,
I just setup my rails application using devise_async
This is my gem file looks like

gem 'sidekiq'
gem 'sinatra', require: false
gem 'devise'
gem 'devise-async'

and this is the setup on the config/initializers/devise_async.rb :

Devise::Async.setup do |config|
  config.enabled = true
  config.backend = :sidekiq
end

And setup for user.rb:

devise :database_authenticatable, :async, :confirmable

So I run my rails, redis-server, and sidekiq and also open the redis-cli
On the redis-cli i turn on the Monitor and i got this bunch of log, even I havent run anything like register the new user or sending email to confirm, etc from devise

127.0.0.1:6379> monitor
OK
1426128341.132424 [0 127.0.0.1:62860] "brpop" "queue:default" "1"
1426128343.040102 [0 127.0.0.1:62860] "brpop" "queue:default" "1"
1426128343.542666 [0 127.0.0.1:62865] "multi"
1426128343.542727 [0 127.0.0.1:62865] "sadd" "processes" "Rizals-MacBook-Pro.local:81122"
1426128343.542745 [0 127.0.0.1:62865] "hmset" "Rizals-MacBook-Pro.local:81122" "info" "{\"hostname\":\"Rizals-MacBook-Pro.local\",\"started_at\":1426127583.1370099,\"pid\":81122,\"tag\":\"My-Trades-Men\",\"concurrency\":25,\"queues\":[\"default\"],\"labels\":[]}" "busy" "0" "beat" "1426128343.542463"
1426128343.542805 [0 127.0.0.1:62865] "expire" "Rizals-MacBook-Pro.local:81122" "60"
1426128343.542817 [0 127.0.0.1:62865] "rpop" "Rizals-MacBook-Pro.local:81122-signals"
1426128343.542838 [0 127.0.0.1:62865] "exec"
1426128344.494052 [0 127.0.0.1:62865] "zrangebyscore" "retry" "-inf" "1426128344.493691" "LIMIT" "0" "1"
1426128344.494613 [0 127.0.0.1:62865] "zrangebyscore" "schedule" "-inf" "1426128344.493691" "LIMIT" "0" "1"
1426128345.013881 [0 127.0.0.1:62860] "brpop" "queue:default" "1"
1426128347.026389 [0 127.0.0.1:62860] "brpop" "queue:default" "1"
1426128348.543689 [0 127.0.0.1:62865] "multi"
1426128348.543784 [0 127.0.0.1:62865] "sadd" "processes" "Rizals-MacBook-Pro.local:81122"
1426128348.543810 [0 127.0.0.1:62865] "hmset" "Rizals-MacBook-Pro.local:81122" "info" "{\"hostname\":\"Rizals-MacBook-Pro.local\",\"started_at\":1426127583.1370099,\"pid\":81122,\"tag\":\"My-Trades-Men\",\"concurrency\":25,\"queues\":[\"default\"],\"labels\":[]}" "busy" "0" "beat" "1426128348.5435572"
1426128348.543862 [0 127.0.0.1:62865] "expire" "Rizals-MacBook-Pro.local:81122" "60"
1426128348.543876 [0 127.0.0.1:62865] "rpop" "Rizals-MacBook-Pro.local:81122-signals"
1426128348.543893 [0 127.0.0.1:62865] "exec"
1426128349.067366 [0 127.0.0.1:62860] "brpop" "queue:default" "1"

Does this look normal ?

Thanks

@rizalmuthi
Copy link
Author

Btw, to add information, after I register and try to resend the confirmation email, it does not work(does not send the email)

I am using mandril tho for smtp.

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

No branches or pull requests

1 participant