func (o *svcStopTaskOpts) Execute() error {
	sess, err := o.getSession()
	if err != nil {
		return fmt.Errorf("get session: %w", err)
	}

	if o.all {
		return o.stopAllTasks(sess)
	} else {
		return o.stopTaskIds(sess)
	}
}
// Execute stop tasks of the service.
Execute stop tasks of the service.
// Execute stop tasks of the service .
func (o *svcStopTaskOpts) Execute() error {
	sess, err := o.getSession()
	if err != nil {
		return fmt.Errorf("get session: %w", err)
	}
	if o.all {
		return o.stopAllTasks(sess)
	} else {
		return o.stopTaskIds(sess)
	}
}
func ( o * svcStopTaskOpts ) Execute ( ) error { sess , err := o . getSession ( ) if err != nil { return fmt . Errorf ( " " , err ) } if o . all { return o . stopAllTasks ( sess ) } else { return o . stopTaskIds ( sess ) } }
Execute stop tasks of the service.
Execute stop tasks of the service .