PEATSA/WebApp/Data.py
def jobsInState(self, state):
	
		'''Returns any job which is in state
		
		Valid states:
			UnderConstruction
			Ready
			Launched
			Running
			Finished'''
	
		#Refresh connection
		self.connection.commit()
		selectQuery = """SELECT JobID, State FROM %s""" % (self.jobTable)
		self.cursor.execute(selectQuery)		
		rows = self.cursor.fetchall()
		
		ids = []
		for row in rows:
			if state in row:
				ids.append(row[0])
				
		return ids
Returns any job which is in state
		
		Valid states:
			UnderConstruction
			Ready
			Launched
			Running
			Finished
Returns any job which is in state
Valid states:
UnderConstruction
Ready
Launched
Running
Finished
Returns any job which is in state Valid states : UnderConstruction Ready Launched Running Finished
def jobsInState(self, state):
		self.connection.commit()
		selectQuery = """SELECT JobID, State FROM %s""" % (self.jobTable)
		self.cursor.execute(selectQuery)		
		rows = self.cursor.fetchall()
		ids = []
		for row in rows:
			if state in row:
				ids.append(row[0])
		return ids
def jobsInState ( self , state ) : self . connection . commit ( ) selectQuery = """SELECT JobID, State FROM %s""" % ( self . jobTable ) self . cursor . execute ( selectQuery ) rows = self . cursor . fetchall ( ) ids = [ ] for row in rows : if state in row : ids . append ( row [ 0 ] ) return ids
Returns any job which is in state
Valid states:
UnderConstruction
Ready
Launched
Running
Finished
Returns any job which is in state Valid states : UnderConstruction Ready Launched Running Finished
'''Returns any job which is in state
		
		Valid states:
			UnderConstruction
			Ready
			Launched
			Running
			Finished''' #Refresh connection
self
state