def createAndStartSwarm(client, clientInfo='', clientKey='', params='', minimumWorkers=None, maximumWorkers=None, alreadyRunning=False):
 if (minimumWorkers is None):
  minimumWorkers = Configuration.getInt('nupic.hypersearch.minWorkersPerSwarm')
 if (maximumWorkers is None):
  maximumWorkers = Configuration.getInt('nupic.hypersearch.maxWorkersPerSwarm')
 return ClientJobsDAO.get().jobInsert(client=client, cmdLine='$HYPERSEARCH', clientInfo=clientInfo, clientKey=clientKey, alreadyRunning=alreadyRunning, params=params, minimumWorkers=minimumWorkers, maximumWorkers=maximumWorkers, jobType=ClientJobsDAO.JOB_TYPE_HS)

def createAndStartSwarm ( client , clientInfo = '' , clientKey = '' , params = '' , minimumWorkers = None , maximumWorkers = None , alreadyRunning = False ) : if ( minimumWorkers is None ) : minimumWorkers = Configuration . getInt ( 'nupic.hypersearch.minWorkersPerSwarm' ) if ( maximumWorkers is None ) : maximumWorkers = Configuration . getInt ( 'nupic.hypersearch.maxWorkersPerSwarm' ) return ClientJobsDAO . get ( ) . jobInsert ( client = client , cmdLine = '$HYPERSEARCH' , clientInfo = clientInfo , clientKey = clientKey , alreadyRunning = alreadyRunning , params = params , minimumWorkers = minimumWorkers , maximumWorkers = maximumWorkers , jobType = ClientJobsDAO . JOB_TYPE_HS )
create and start a swarm job .