search for: ebayauctionworker

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

Did you mean: ebay_auction_worker
2007 Mar 05
2
Scheduled workers only run once unless you call self.delete inside the worker
...* * * This worker posts an auction to eBay from a queue of auctions every minute. I was having a problem where the worker would run ok the first time, but never any subsequent minutes after that. The way I fixed it was adding a call to self.delete at the end of every do_work() method: ---- class EbayAuctionWorker < BackgrounDRb::Rails # Set this worker to run every minute. attr_accessor :progress, :description def do_work(args) # This method is called in it''s own new thread when you # call new worker. args is set to :args @progress = 0 @description = "Checking for eB...
2007 Mar 13
3
Scheduled worker dies after about 30-45 runs
...ver, after about 30-45 scheduled runs, it simply stops running. My backgroundrb_schedules.yml file: ------ ebay_runner: :class: :ebay_auction_worker :job_key: :ebay_auction_runner :trigger_type: :cron_trigger :trigger_args: 0 * * * * * * ------ My ebay_auction_worker.rb file: ------ class EbayAuctionWorker < BackgrounDRb::Rails # Set this worker to run every minute. attr_accessor :progress, :description def do_work(args) # This method is called in it''s own new thread when you # call new worker. args is set to :args @progress = 0 @description = "Checking for eB...