Skip to content
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

Merged
merged 13 commits into from
Apr 18, 2024

Conversation

vigoo
Copy link
Contributor

@vigoo vigoo commented Apr 17, 2024

Resolves #387

Also removes the concept of a VersionedWorkerId as it is confusing (there cannot be different versions of the same worker identified by a WorkerId) and used inconsistently.

@@ -47,7 +46,7 @@ message LaunchNewWorkerRequest {

message LaunchNewWorkerResponse {
oneof result {
golem.worker.VersionedWorkerId success = 1;
golem.worker.WorkerId success = 1;
Copy link
Contributor

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

Copy link
Contributor Author

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>> {
Copy link
Contributor

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
}

@vigoo vigoo enabled auto-merge (squash) April 18, 2024 08:26
@vigoo vigoo merged commit 633c2c9 into main Apr 18, 2024
6 checks passed
@vigoo vigoo deleted the update-worker-oplog branch April 18, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce component version override, in-progress and failed updates to the oplog
2 participants