~allenap/maas/regiond-leader

Viewing all changes in revision 3850.

  • Committer: MAAS Lander
  • Author(s): Blake Rouse, Gavin Panella
  • Date: 2015-04-29 06:36:51 UTC
  • mfrom: (3819.7.4 cordinate-notifies)
  • Revision ID: maas_lander-20150429063651-3qh3l6ou9jyem223
[r=allenap][bug=1447208][author=blake-rouse] Coordinate the notify messages from postgres into a set, handling the notification messages in the set instead of as the come in from postgres.

This helps remove duplicate notifications as some notifications can happen multiple times quickly as the database is being updated. Also helps coordinate the notifications only processing one at a time, instead of hammering the database and processing all notifications in parallel or until the threadpool is maxed.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: