gnufied / backgroundrb Goto Github PK
View Code? Open in Web Editor NEWA Ruby/Rails job server and scheduler
Home Page: http://backgroundrb.rubyforge.org
License: Other
A Ruby/Rails job server and scheduler
Home Page: http://backgroundrb.rubyforge.org
License: Other
Please have a look at my comment on the code:
http://github.com/gnufied/backgroundrb/commit/22d365a4df4b49d29774efdb5a9335e0300a3ac9#server/lib/master_worker.rb-P27
The method which should be called there doesn't seem to be defined anywhere...
I am trying to schedule job on 48 hours interval with "0 30 13 */2 * * *" option but job next executed on right time.
After some debugging I found cron executed for odd dates but not for even dates.
This might be a bug tickled by the latest version of rspec, because I've been using rspec and backgroundrb for ages without any problems.
What I'm finding is if I run 'rake spec' from a rails project with the backgroundrb plugin and a backgroundrb.yml file which specifies ":environment: development", line 23 of bdrb_config.rb sets RAILS_ENV to 'development'. This means that rake spec clobbers the development database.
Seems like for some time now, backgroundrb version 1.1 has been plaguing certain users with a "no such file" error for log_worker when starting up the backgroundrb server. It hit me today, and the cause quickly became apparent. Somewhere around version 0.1.7, packet's code changed in some way that causes WORKER_ROOT or WORKER_LOAD_ENV paths with spaces in them to cause a no such file error. It has to do with the way packet constructs the command line for packet_worker_runner.
While it would probably make more sense for the maintainers of packet to fix this issue on their end, the fix in backgroundrb is really simple. Just add preceding and trailing " characters to WORKER_ROOT and WORKER_LOAD_ENV.
I'd submit a patch myself, but I'm really new to ruby and not sure if my fix would be considered the "right way" to go about working around the packet issue. I plan on mentioning this to the packet maintainers too.
Calls to exit() seem to be broken in the master branch, which results in zombie workers until backgroundrb is cycled.
What is the status and plans for Rails 3 compatibility of backgroundrb?
And it kills kittens.
It doesn’t kill them proper.
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.