9to5 / pushr-core Goto Github PK
View Code? Open in Web Editor NEWRedis backed push notification daemon
License: MIT License
Redis backed push notification daemon
License: MIT License
bundle exec pushr -f
/opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/core.rb:46:in `configurations=': uninitialized constant ActiveRecord::ConnectionHandling::MergeAndResolveDefaultUrlConfig (NameError)
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/core.rb:48:in `block in <module:Core>'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/concern.rb:120:in `class_eval'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/concern.rb:120:in `append_features'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/base.rb:284:in `include'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/base.rb:284:in `<class:Base>'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/base.rb:269:in `<module:ActiveRecord>'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/base.rb:26:in `<top (required)>'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/tasks/postgresql_database_tasks.rb:9:in `<class:PostgreSQLDatabaseTasks>'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/tasks/postgresql_database_tasks.rb:5:in `<module:Tasks>'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/tasks/postgresql_database_tasks.rb:4:in `<module:ActiveRecord>'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/tasks/postgresql_database_tasks.rb:3:in `<top (required)>'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-postgis-adapter-3.0.0/lib/active_record/connection_adapters/postgis/postgis_database_tasks.rb:4:in `<module:PostGIS>'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-postgis-adapter-3.0.0/lib/active_record/connection_adapters/postgis/postgis_database_tasks.rb:3:in `<module:ConnectionAdapters>'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-postgis-adapter-3.0.0/lib/active_record/connection_adapters/postgis/postgis_database_tasks.rb:2:in `<module:ActiveRecord>'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-postgis-adapter-3.0.0/lib/active_record/connection_adapters/postgis/postgis_database_tasks.rb:1:in `<top (required)>'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-postgis-adapter-3.0.0/lib/active_record/connection_adapters/postgis_adapter.rb:18:in `require'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-postgis-adapter-3.0.0/lib/active_record/connection_adapters/postgis_adapter.rb:18:in `<top (required)>'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-postgis-adapter-3.0.0/lib/activerecord-postgis-adapter.rb:1:in `require'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-postgis-adapter-3.0.0/lib/activerecord-postgis-adapter.rb:1:in `<top (required)>'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `require'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `each'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `block in require'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `each'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `require'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler.rb:134:in `require'
from /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/pushr-core-1.0.2/bin/pushr:4:in `<top (required)>'
from /opt/rubies/ruby-2.2.0/bin/pushr:23:in `load'
from /opt/rubies/ruby-2.2.0/bin/pushr:23:in `<main>'
SSL version 3 is vulnerable to Poodle attack - please use TLS 1.2 or 1.1 or 1.0
I need to access Rails ActiveRecord in my feedback_processor.rb (and perhaps the stats_processor too). It seems like the rails environment is not loaded for pushr-core, but it was in push-core. How can I load the rails environment for use in the feedback_processor.rb? I need to use the feedback to remove or update devices in my rails database.
I think this should be in: https://github.com/9to5/pushr-core/blob/develop/lib/pushr/configuration.rb#L68
Allow multiple queues (with different priority) for each App, each with their own version of the Pushr daemon
If you have notifications with different priority and volume, it can become necessary to split-out the high-priority lower-volume notifications from the lower-priority very-high-volume notifications.
instead of three options -o -r -n ,it would be great to just provide one option which is a Redis URL
-u redis://something.something.amazonaws.com:6379/1
It looks as though there was a 1.0.0 release, which generally indicates interface stability and support. However, the first line of the README contains:
Please note: We're in the process of updating this gem. The current code is not yet stable. Please contact us if you want to test or contribute to this project.
So, is this stable or not?
How is --stats-processor
meant to be used?
I can't find anything in the code that calls it. Could this be used to send data to statsd?
[2016-03-25 18:02:31 +0000] ERROR: Errno::ECONNRESET, Connection reset by peer: /opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/openssl/buffering.rb:61:in `sysread'
/opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/openssl/buffering.rb:61:in `fill_rbuff'
/opt/rubies/ruby-2.2.3/lib/ruby/2.2.0/openssl/buffering.rb:102:in `read'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/pushr-apns-1.0.1/lib/pushr/daemon/apns_support/connection_apns.rb:53:in `read'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/pushr-apns-1.0.1/lib/pushr/daemon/apns_support/connection_apns.rb:97:in `check_for_error'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/pushr-apns-1.0.1/lib/pushr/daemon/apns_support/connection_apns.rb:82:in `write'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/pushr-core-1.0.2/lib/pushr/daemon/message_handler.rb:33:in `block in handle_next'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/pushr-core-1.0.2/lib/pushr/core.rb:75:in `block in instrument'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:166:in `instrument'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/pushr-core-1.0.2/lib/pushr/core.rb:74:in `instrument'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/pushr-core-1.0.2/lib/pushr/daemon/message_handler.rb:32:in `handle_next'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/pushr-core-1.0.2/lib/pushr/daemon/message_handler.rb:16:in `block (2 levels) in start'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/pushr-core-1.0.2/lib/pushr/daemon/message_handler.rb:15:in `loop'
/opt/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/pushr-core-1.0.2/lib/pushr/daemon/message_handler.rb:15:in `block in start'
It's been a view month since the last commit on the develop branch. It would be great if you could release the last changes somehow. Either a 1.0.1, or 1.0.1-pre would be fine - pulling dependencies from git repositories isn't much fun ;)
(I'm particularly interested in 12e7446)
Thanks a lot!
bundle exec pushr -o localhost -r 6379 -p /my_home_dir_path/my_project_dir/config/pushr_daemon.pid
doesn't create the pid file, but
bundle exec pushr -o localhost -r 6379 -p config/pushr_daemon.pid
does create the pid file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.