summaryrefslogtreecommitdiff
path: root/distbuild/protocol.py
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2015-05-01 15:58:07 +0100
committerBaserock Gerrit <gerrit@baserock.org>2015-05-12 07:33:04 +0000
commitf4360e39ecf9e53347c58d2480fde0cd8402579d (patch)
treed0a009260d5adc9cdb491f8b554b0d62f57121c2 /distbuild/protocol.py
parentcc79a6ba5bbc3a28b150b944ea57521fd3f27d03 (diff)
downloadmorph-f4360e39ecf9e53347c58d2480fde0cd8402579d.tar.gz
Add GraphProgress messages
Adds distinct message types to give us more flexibility over message handling now that we have multiple initiator types with different requirements. Change-Id: Ib2af8736b83d66ef20a8e37591ca68c9441b6497
Diffstat (limited to 'distbuild/protocol.py')
-rw-r--r--distbuild/protocol.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/distbuild/protocol.py b/distbuild/protocol.py
index 8de60ba4..9aab6a6d 100644
--- a/distbuild/protocol.py
+++ b/distbuild/protocol.py
@@ -22,7 +22,7 @@
# time a change is introduced that would break server/initiator compatibility
-VERSION = 3
+VERSION = 4
_required_fields = {
@@ -107,6 +107,17 @@ _required_fields = {
'id',
'protocol_version',
],
+ 'graphing-started': [
+ 'id',
+ ],
+ 'graphing-finished': [
+ 'id'
+ ],
+ 'cache-state': [
+ 'id',
+ 'unbuilt',
+ 'total'
+ ]
}