![]() |
#1 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jan 2012
Device: Kindle Touch
|
Troubleshooting slow user recipes
I have a few user recipes that have 5-15 RSS feeds in them, and they simply take too long to fetch (some up to an hour). I would presume that one or two feeds are slow to fetch because of the nature of their site setup, server issues, or feed setup, but I'm not sure.
How would I go about troubleshooting these recipes to find out the problem feeds or otherwise figure out how to fix my recipe? My first thought was to look through the "job details" log, but there are no timestamps in there or other info to show me the slow steps. Any hints? Anything else I should try to speed these up? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,195
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can implement populate_article_metadata in the recipe and have it print out a timestamp alongwith the article title/url for debugging
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 131
Karma: 150390
Join Date: Nov 2011
Location: Pacific NorthWest
Device: Kindle Fire
|
Run them at the command line where you can see what's happening. e.g.
\Program Files\Calibre2\ebook-convert.exe" myrecipe.recipe .epub --test -vv --debug-pipeline debug |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jan 2012
Device: Kindle Touch
|
Thanks Kovid. Where do I do this? I tried adding "populate_article_metadata = 1" to the class in advanced mode, but that didn't seem to do anything.
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,195
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Code:
def populate_article_metadata(article, soup, first): print (time.time(), article.title) |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Member
![]() Posts: 10
Karma: 10
Join Date: Jan 2012
Device: Kindle Touch
|
Quote:
Code:
class OPML2PY_1326333899(BasicNewsRecipe): def populate_article_metadata(article, soup, first): print (time.time(), article.title) title = u'Baseball' oldest_article = 2 max_articles_per_feed = 100 populate_article_metadata = 1 feeds = [ (u'38 Pitches', u'http://38pitches.com/feed/'), (u'A Fans View', u'http://www.startribune.com/rss/?did=78693312'), .... ] |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free Book (Kindle) - Circle of Friends Cookbook 25 Slow Cooker Recipes | koland | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 05-14-2011 04:38 AM |
Troubleshooting--> Firmware? User error? gah. | the grue | Astak EZReader | 13 | 08-31-2010 06:35 PM |
Troubleshooting | miklizro | Astak EZReader | 28 | 08-23-2010 08:21 PM |
Free on Kindle - Not Your Mother's Slow Cooker Recipes for Entertaining | koland | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 11-23-2009 09:52 PM |
calibre - very slow conversion, very slow on PRS | cremofix | Calibre | 3 | 06-10-2009 04:21 PM |