Skip to content

Commit e949b1d

Browse files
committed
fix: suppress misleading warning for release/scheduler in ps resize
These are task-based process types, not ECS services, so the "does not exist" warning is incorrect and confusing. Closes #101
1 parent 6867852 commit e949b1d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

cmd/ps.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,13 @@ var psResizeCmd = &cobra.Command{
182182
}
183183
_, err = a.DeployStatus.FindProcess(processType)
184184
if err != nil {
185-
printWarning(fmt.Sprintf("Service %q does not exist. Settings will be used if the service is created later.\n", processType))
185+
switch processType {
186+
case "release", "scheduler":
187+
// These are task-based process types, not ECS services.
188+
// They won't appear in the service list but can still be resized.
189+
default:
190+
printWarning(fmt.Sprintf("Service %q does not exist. Settings will be used if the service is created later.\n", processType))
191+
}
186192
}
187193
size, err := humanToECSSizeConfiguration(scaleCPU, scaleMemory)
188194
checkErr(err)

0 commit comments

Comments
 (0)