udd importer should make tea while launchpad is down
|||Ubuntu Distributed Development||
Launchpad goes offline or readonly roughly every month for about an hour.
At the moment the package importer handles this quite poorly by failing every single package that it tries to import during that time. It can take some time for them to get retried; istr in some cases manual intervention is needed.
It might be better if, before starting an import, it checked if Launchpad is up (and writable) at all. If not, it should probably just not trying anything else for a few minutes.
I don't think Launchpad exports a specific machine-readable interface to say "I'm down" or "I'm readonly". We could look for "readonly" in the html of the front page or try some other requests. Possibly that code should go into lplib if it's reusable.
|James Westby (james-w) wrote : Re: [Bug 795321] [NEW] udd importer should make tea while launchpad is down||#1|
|Robert Collins (lifeless) wrote : Re: [Bug 795321] Re: udd importer should make tea while launchpad is down||#3|
|Changed in launchpad:|
|status:||New → Triaged|
|importance:||Undecided → High|
|Changed in udd:|
|assignee:||Jonathan Riddell (jr) → Vincent Ladeuil (vila)|
|status:||Confirmed → In Progress|