Skip to content

Commit

Permalink
Fix running executor with legacy api disabled
Browse files Browse the repository at this point in the history
This PR just makes it so UseLegacyApi is set to false, no components used with the legacy api are used
  • Loading branch information
JamesMurkin committed Apr 14, 2023
1 parent 507edc2 commit f0af88d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/executor/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ func setupServerApiComponents(
nodeInfoService node.NodeInfoService,
podUtilisationService utilisation.PodUtilisationService,
) func() {
if !config.Application.UseLegacyApi {
return func() {}
}
conn, err := createConnectionToApi(config.ApiConnection, config.Client.MaxMessageSizeBytes, config.GRPC)
if err != nil {
log.Errorf("Failed to connect to API because: %s", err)
Expand Down

0 comments on commit f0af88d

Please sign in to comment.