Displaying 3 results from an estimated 3 matches for "post_on".
2007 Mar 05
2
Scheduled workers only run once unless you call self.delete inside the worker
...# call new worker. args is set to :args
@progress = 0
@description = "Checking for eBay auctions and posting"
logger.info("Checking to post an auction at #{Time.now.to_s}.")
auction = EbayAuction.find(:first, :conditions => ["auction_status = ?
AND post_on < ?", EbayAuction::STATUS_STRINGS[:queued], Time.now])
if auction
logger.info("--- Posting auction: #{auction.title}")
auction.post
else
logger.info("--- No auctions currently need posting.")
end
@progress = 100
logger.info("...
2005 May 06
17
FYI: watch out for google's web accelerator - can empty your app of data
Hi All,
A co-worker passed this info on to me:
http://37signals.com/svn/archives2/google_web_accelerator_hey_not_so_fast_an_alert_for_web_app_designers.php
The Skinny: Google has a "Web Accelerator" that pre-caches pages by
following url''s. If you have any plain/simple URL''s that don''t take
paramaters (like what often happens in rails apps), it will try to
2007 Mar 13
3
Scheduled worker dies after about 30-45 runs
...# call new worker. args is set to :args
@progress = 0
@description = "Checking for eBay auctions and posting"
logger.info("Checking to post an auction at #{Time.now.to_s}.")
auction = EbayAuction.find(:first, :conditions => ["auction_status = ?
AND post_on < ?", EbayAuction::STATUS_STRINGS[:queued], Time.now])
if auction
logger.info("--- Posting auction: #{auction.title}")
# This method only takes 1-3 seconds tops to run -- it just generates
an <AddItem> call to eBay''s XML API, and sends it along....