Skip to content

Commit

Permalink
fix: store if runners have been provisioned to the deployment runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmakine committed Jan 17, 2025
1 parent d8aab44 commit 1bfeeb9
Show file tree
Hide file tree
Showing 8 changed files with 424 additions and 400 deletions.
9 changes: 5 additions & 4 deletions backend/provisioner/controller_provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ func NewControllerProvisioner(client ftlv1connect.ControllerServiceClient) *InMe

return &RuntimeEvent{
Module: &schema.ModuleRuntimeDeployment{
CreatedAt: module.GetRuntime().GetDeployment().GetCreatedAt(),
ActivatedAt: module.GetRuntime().GetDeployment().GetActivatedAt(),
Endpoint: module.GetRuntime().GetDeployment().GetEndpoint(),
DeploymentKey: deploymentKey,
CreatedAt: module.GetRuntime().GetDeployment().GetCreatedAt(),
ActivatedAt: module.GetRuntime().GetDeployment().GetActivatedAt(),
Endpoint: module.GetRuntime().GetDeployment().GetEndpoint(),
DeploymentKey: deploymentKey,
RunnersProvisioned: true,
},
}, nil
},
Expand Down
659 changes: 335 additions & 324 deletions common/protos/xyz/block/ftl/schema/v1/schema.pb.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions common/protos/xyz/block/ftl/schema/v1/schema.proto
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ message ModuleRuntimeDeployment {
string deployment_key = 2;
google.protobuf.Timestamp created_at = 3;
google.protobuf.Timestamp activated_at = 4;
bool runners_provisioned = 5;
}

message ModuleRuntimeEvent {
Expand Down
18 changes: 10 additions & 8 deletions common/schema/go2proto.to.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions common/schema/moduleruntime.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ func (m *ModuleRuntimeScaling) runtimeEvent() {}
//protobuf:3 RuntimeEvent
type ModuleRuntimeDeployment struct {
// Endpoint is the endpoint of the deployed module.
Endpoint string `protobuf:"1"`
DeploymentKey key.Deployment `protobuf:"2"`
CreatedAt time.Time `protobuf:"3"`
ActivatedAt time.Time `protobuf:"4"`
Endpoint string `protobuf:"1"`
DeploymentKey key.Deployment `protobuf:"2"`
CreatedAt time.Time `protobuf:"3"`
ActivatedAt time.Time `protobuf:"4"`
RunnersProvisioned bool `protobuf:"5"`
}

func (m *ModuleRuntimeDeployment) moduleRuntime() {}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1bfeeb9

Please sign in to comment.