mtylty / backgroundrb-rails3 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from benders/backgroundrb
A Ruby/Rails job server and scheduler
Home Page: http://backgroundrb.rubyforge.org
License: Other
This project forked from benders/backgroundrb
A Ruby/Rails job server and scheduler
Home Page: http://backgroundrb.rubyforge.org
License: Other
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?
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.
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
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.
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.