Skip to content

Commit

Permalink
Merge pull request #49 from gamoutatsumi/fix_pool_agent_disabled_reso…
Browse files Browse the repository at this point in the history
…urce

fix pool agent disabled resource
  • Loading branch information
whywaita authored Nov 19, 2024
2 parents 7d0c8a8 + 7ed84e6 commit f696094
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pool-agent/cmd/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ func (a *Agent) adjustInstancePool() error {
}

for _, i := range s {
if i.Config[configKeyResourceType] == "" || i.Config[configKeyImageAlias] == "" || i.Config[configKeyRunnerName] == "" {
continue
}
l := slog.With("instance", i.Name)
if _, ok := a.ResourceTypesCounts[i.Config[configKeyResourceType]]; !ok {
toDelete = append(toDelete, i.Config[configKeyResourceType])
Expand Down

0 comments on commit f696094

Please sign in to comment.