WarmPool should implement CompareWithID

This is as a top-level task and implementing
CompareWithID lets us refer to it from multiple
tasks.
This commit is contained in:
justinsb 2025-03-23 06:33:13 -04:00
parent 9e84e46065
commit 0a7a2fa468
1 changed files with 7 additions and 0 deletions

View File

@ -66,6 +66,13 @@ func (e *WarmPool) GetDependencies(tasks map[string]fi.CloudupTask) []fi.Cloudup
return deps
}
var _ fi.CompareWithID = &WarmPool{}
// CompareWithID returns the ID of the WarmPool task
func (e *WarmPool) CompareWithID() *string {
return e.Name
}
// Find is used to discover the ASG in the cloud provider.
func (e *WarmPool) Find(c *fi.CloudupContext) (*WarmPool, error) {
ctx := c.Context()