[wp-gsoc] [Summer of Code] #341: Importer iterator state increments regardless of success or failure

Summer of Code noreply at wordpress.org
Wed Jul 31 04:08:44 UTC 2013


#341: Importer iterator state increments regardless of success or failure
------------------------------+-------------------------------------
 Reporter:  frederick.ding    |       Type:  defect
   Status:  new               |   Priority:  major
Milestone:  2013 Final (1.0)  |  Component:  Migration & Portability
 Keywords:                    |
------------------------------+-------------------------------------
 The current simple method of tracking the state of the `process_posts()`
 iterator is to increment a counter which is stored in the database between
 runs. Upon the next run, that counter is used to `$iterator->seek()`.

 Unfortunately, unsuccessful media imports (among other things) appear to
 knock things off track -- the counter is eventually incremented beyond the
 end of the iterable array because the item is re-tried. This makes the
 import job halt in the middle of the `process_posts()` step, never to
 abort or finish.

--
Ticket URL: <http://gsoc.trac.wordpress.org/ticket/341>
Summer of Code <http://gsoc.trac.wordpress.org>
My example project


More information about the wp-gsoc mailing list