func (o *svcStopTaskOpts) stopAllTasks(sess *session.Session) error {
	o.spinner.Start(fmt.Sprintf("Stopping all running tasks in %s.", color.HighlightUserInput(o.name)))

	// Stop all tasks.
	if err := o.newTaskStopper(sess).StopWorkloadTasks(o.appName, o.envName, o.name, taskStopUserInitiated); err != nil {
		o.spinner.Stop(log.Serrorf("Error stopping running tasks in %s.\n", o.name))
		return fmt.Errorf("stop running tasks in family %s: %w", o.name, err)
	}

	o.spinner.Stop(log.Ssuccessf("Stopped all running tasks in %s\n", color.HighlightUserInput(o.name)))

	return nil
}
// stopAllTasks will stop all the tasks running in the service
stopAllTasks will stop all the tasks running in the service
// stopAllTasks will stop all the tasks running in the service
func (o *svcStopTaskOpts) stopAllTasks(sess *session.Session) error {
	o.spinner.Start(fmt.Sprintf("Stopping all running tasks in %s.", color.HighlightUserInput(o.name)))
	if err := o.newTaskStopper(sess).StopWorkloadTasks(o.appName, o.envName, o.name, taskStopUserInitiated); err != nil {
		o.spinner.Stop(log.Serrorf("Error stopping running tasks in %s.\n", o.name))
		return fmt.Errorf("stop running tasks in family %s: %w", o.name, err)
	}
	o.spinner.Stop(log.Ssuccessf("Stopped all running tasks in %s\n", color.HighlightUserInput(o.name)))
	return nil
}
func ( o * svcStopTaskOpts ) stopAllTasks ( sess * session . Session ) error { o . spinner . Start ( fmt . Sprintf ( " " , color . HighlightUserInput ( o . name ) ) ) if err := o . newTaskStopper ( sess ) . StopWorkloadTasks ( o . appName , o . envName , o . name , taskStopUserInitiated ) ; err != nil { o . spinner . Stop ( log . Serrorf ( " \n " , o . name ) ) return fmt . Errorf ( " " , o . name , err ) } o . spinner . Stop ( log . Ssuccessf ( " \n " , color . HighlightUserInput ( o . name ) ) ) return nil }
stopAllTasks will stop all the tasks running in the service
stopAllTasks will stop all the tasks running in the service
// Stop all tasks.