DrTrigon added a comment.

The simplest solution (MVP) would, on pause, continue to run the
existing generator, and write out a page title list to a file instead
of processing the pages.
Then the resumption would use the page title list in the stored file
using -file:xxx.

A better implementation would, on pause, store the next page title to
be processed, and all of the generator arguments.
Then the resumption would create a new generator which resumes where
the last generator stopped.

I agree and have to note that something similar is in catimages too... ;) From there I now this simple approaches can go terribly wrong if the page to resume with has been deleted meanwhile... Other than that it doable and will cover the majority of the cases.
Dr. Trigon


TASK DETAIL
https://phabricator.wikimedia.org/T139842

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: DrTrigon
Cc: valhallasw, Aklapper, jayvdb, Zppix, DrTrigon, pywikibot-bugs-list, Pahadiahimanshu, Manrajsinghgrover, Mdupont, Jay8g
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to