search for: foo_job

Displaying 2 results from an estimated 2 matches for "foo_job".

2007 Nov 02
10
pre-release version of backgroundrb available now from svn
...g MiddleMan.ask_status(:worker => :foo_worker) All the status requests are server by master itself and hence "process_request" inside worker will not be invoked for them. You will find support for schedules very rough around the edges. Reason is, You can use add_periodic_timer(5) { foo_job } to do any kind of scheduling. add_periodic_timer takes number of seconds as argument. for one shot timers, you can use: add_timer(5) { foo_job } Core of new version of bdrb is implemented on a networking library called "packet". It needs its own introduction. But now, inside each w...
2011 Apr 18
2
Problem with resque; parent process doesn't die
I am facing problem in resque process. I have following implementation: /config/resque_schedule.yml add_jobs_to_queue: cron: "15 * * * *" class: FooJob description: "Find results from class Bar and put on queue" /app/jobs/foo_job.rb class FooJob @queue = :normal def self.perform Bar.add_jobs end end app/models/bar.rb class Bar def self.add_jobs students = find :all students.each { |student| student.enqueue(:asap) } end end Here FooJob(queue: normal) is executed using resque scheduler. The performm...