From c8c3122a26f47bc26aee4eb4428e85e26991c19c Mon Sep 17 00:00:00 2001 From: nikkolasg Date: Tue, 3 Dec 2024 15:19:30 +0100 Subject: [PATCH 1/2] uuids on worker tasks --- proto/lagrange.proto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proto/lagrange.proto b/proto/lagrange.proto index 24670de..2cb9bc5 100644 --- a/proto/lagrange.proto +++ b/proto/lagrange.proto @@ -5,6 +5,7 @@ package lagrange; import "google/protobuf/timestamp.proto"; message WorkerToGwResponse { + UUID task_id; oneof response { string todo = 1; } @@ -33,6 +34,7 @@ service WorkersService { } message WorkerDone { + UUID task_id; oneof reply { string reply_string = 1; string worker_error = 2; From 2197d72db85283141e0c115df0044bee7c75b37f Mon Sep 17 00:00:00 2001 From: nikkolasg Date: Tue, 3 Dec 2024 15:25:11 +0100 Subject: [PATCH 2/2] correct format --- proto/lagrange.proto | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/proto/lagrange.proto b/proto/lagrange.proto index 2cb9bc5..77fd2d4 100644 --- a/proto/lagrange.proto +++ b/proto/lagrange.proto @@ -5,9 +5,9 @@ package lagrange; import "google/protobuf/timestamp.proto"; message WorkerToGwResponse { - UUID task_id; + UUID task_id = 1; oneof response { - string todo = 1; + string todo = 2; } } @@ -34,10 +34,10 @@ service WorkersService { } message WorkerDone { - UUID task_id; + UUID task_id = 1; oneof reply { - string reply_string = 1; - string worker_error = 2; + string reply_string = 2; + string worker_error = 3; } }