-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update related oplog entries and removing VersionedWorkerId #417
Conversation
@@ -47,7 +46,7 @@ message LaunchNewWorkerRequest { | |||
|
|||
message LaunchNewWorkerResponse { | |||
oneof result { | |||
golem.worker.VersionedWorkerId success = 1; | |||
golem.worker.WorkerId success = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually i think it is quiet useful, if this returning version of created worker, maybe instead there should be
message LaunchNewWorkerSuccess {
golem.worker.WorkerId worker_id = 1;
uint64 template_version = 2;
...
}
message LaunchNewWorkerResponse {
oneof result {
LaunchNewWorkerSuccess success = 1;
...
}
}
also in such way it is more prepared for future extensions of response
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, thanks
@@ -47,7 +30,7 @@ impl WorkerApi { | |||
&self, | |||
template_id: Path<TemplateId>, | |||
request: Json<WorkerCreationRequest>, | |||
) -> Result<Json<VersionedWorkerId>> { | |||
) -> Result<Json<WorkerId>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similar like i mentioned in case of gRpc api
instead of just WorkerId
, have some payload
struct WorkerCreationResponse {
worker_id: WorkerId,
template_version: u64
}
Resolves #387
Also removes the concept of a
VersionedWorkerId
as it is confusing (there cannot be different versions of the same worker identified by aWorkerId
) and used inconsistently.