Code Monkey home page Code Monkey logo

backgroundrb-rails3's People

Contributors

benders avatar benwyrosdick avatar denisdefreyne avatar eyvoro avatar gnufied avatar jdwyah avatar miloops avatar mtylty avatar nbibler avatar peteonrails avatar swindsor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

backgroundrb-rails3's Issues

Error Starting in Rails 3

I run ./script/backgroundrb start - development and get this error in rails 3
.rvm/gems/ruby-1.9.2-p0/gems/polyglot-0.3.1/lib/polyglot.rb:64:in `require': /Users/lunchmeat/.rvm/gems/ruby-1.9.2-p0/gems/backgroundrb-rails3-1.1.3/server/lib/master_worker.rb:38: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError)
when :async_invoke: async_method_invoke(t_data)

any ideas?

rake tasks do not show up under Rails 3.0.9 application

backgroundrb:setup & friends don't show up for my Rails 3.0.9 application:

$ rake -T

In order to run the setup rake task I had to copy the main folders (server, lib, script, etc.) from the gem itself into my vendor/plugins/backgroundrb-rails3-hack folder so that rake would pick up the tasks the gem needs for installation.

Hoping this is just something messed up in my setup, but don't really see how as it's not too hard to add the following to the Gemfile:

gem "backgroundrb-rails3", :require => "backgroundrb"

Thanks for the port to making this Rails 3 compatible btw. Huge life-saver for my team.

Wrong job queues table name

queue_migration generator should create a table named :bdrb_job_queues.

At present time that generator create backgroundrb_jobs table and this results in the following exception.
For instance, with sqlite3:

SQLite3::SQLException: no such table: bdrb_job_queues: SELECT "bdrb_job_queues".* FROM "bdrb_job_queues" WHERE ( worker_name = 'house_keeper_worker' AND taken = 0 AND scheduled_at <= '2010-12-29 10:39:11.004727' ) ORDER BY priority desc LIMIT 1

broken under ruby 1.9.2

it didn't work for me with ruby 1.9.2

i hacked it to fix:
if you change line 130 of server/lib/master_worker.rb to:

  reactor.live_workers[worker_name_key].invokable_worker_methods.collect { |i| i.to_s }

then it works. under ruby 1.9.2 this returns an array of symbols, in ruby 1.8.7 they're a list of strings.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.