summaryrefslogtreecommitdiff
path: root/distbuild/protocol.py
diff options
context:
space:
mode:
authorLauren Perry <lauren.perry@codethink.co.uk>2015-04-02 17:23:07 +0100
committerRichard Ipsum <richardipsum@fastmail.co.uk>2015-04-29 16:10:58 +0000
commit84096556ea54d4af236f1fe5f7ccf61c1343016f (patch)
tree76b5aa72bf9c691fd8e154feade051c2ceba16ac /distbuild/protocol.py
parent4a1c2d118511da067fcadf2253fdc2a49d04e4fa (diff)
downloadmorph-84096556ea54d4af236f1fe5f7ccf61c1343016f.tar.gz
distbuild: Add distbuild start and cancel functionality
Add command for distbuild-start to build_plugin in morphlib, and create a boolean parameter to inform the initiator whether to disconnect the controller and leave the build running remotely. Add distbuild-cancel command to parse currently-running distbuild build-request IDs and cancel the one matching the given argument Change-Id: I458a5767bb768ceb2b4d8876adf1c86075d452bd
Diffstat (limited to 'distbuild/protocol.py')
-rw-r--r--distbuild/protocol.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/distbuild/protocol.py b/distbuild/protocol.py
index 2fbfa085..8f533e75 100644
--- a/distbuild/protocol.py
+++ b/distbuild/protocol.py
@@ -33,6 +33,7 @@ _required_fields = {
'morphology',
'partial',
'protocol_version',
+ 'allow_detach',
],
'build-progress': [
'id',
@@ -43,6 +44,9 @@ _required_fields = {
'step_name',
'worker_name',
],
+ 'build-started': [
+ 'id',
+ ],
'step-already-started': [
'id',
'step_name',
@@ -70,6 +74,9 @@ _required_fields = {
'id',
'reason',
],
+ 'build-cancelled': [
+ 'id',
+ ],
'exec-request': [
'id',
'argv',
@@ -92,6 +99,10 @@ _required_fields = {
'request-output': [
'message',
],
+ 'build-cancel': [
+ 'id',
+ 'protocol_version',
+ ],
}