~jcsackett/charmworld/fix-enqueue-sort-failure

Viewing all changes in revision 477.

  • Committer: Tarmac
  • Author(s): Brad Crittenden
  • Date: 2014-01-16 17:53:57 UTC
  • mfrom: (476.1.7 fix-ingestion-errors)
  • Revision ID: tarmac-20140116175357-8x3ljl1fbnmo0g9l
Clear queues at ingest startup.

Bundles seem to get stuck when the job entries are locked and the ingest
process dies, such as happens when charm attributes are set or the charm gets
updated.

To avoid having the queues littered with items that never go away, which is
disconcerting to the casual viewer of /heartbeat, this branch introduces a new
--clear option to the queueing process which is used by the worker on the
first invocation

This branch also addresses a few other issues by being more defensive in the
face of charms and bundles that are non-standard in a number of ways.

* Handle the lack of 'bundles.yaml' gracefully.

* Handle SVG files with float placement values.

* Handle charms with no files.  The only instance I've seen of this occurring
  is with a charm that is private in Launchpad, so I cannot assess how it
  happens.

https://codereview.appspot.com/51010046/

R=rharding.

Approved by Juju Gui Bot.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: