Changeset 3823 for lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/storeManager.py
- Timestamp:
- Mar 7, 2017, 12:40:10 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/storeManager.py
r3661 r3823 176 176 # - status true/false 177 177 ### 178 def is_action_running(self,action =None):178 def is_action_running(self,actionSearched=None): 179 179 status=False 180 if action: 180 lst_Actions=[] 181 if actionSearched: 182 lst_Actions.append(actionSearched) 183 else: 184 lst_Action=self.relatedActions.keys() 185 186 for action in lst_Actions: 181 187 if action in self.threadsRunning: 182 188 if self.threadsRunning[action].is_alive(): 183 189 status=True 190 break 184 191 else: 185 192 if action in self.relatedActions.keys(): … … 190 197 break 191 198 # self._debug(action+" running: "+str(status)) 192 else: 193 if (threading.active_count()-1): 194 status=True 195 # self._debug("Running: "+str(threading.active_count()) + " threads") 199 # else: 200 # for action in self.relatedActions.keys(): 201 # self._debug("Checking running status for action: "+str(action)) 202 # for relatedAction in self.relatedActions[action]: 203 # if relatedAction in self.threadsRunning.keys(): 204 # if self.threadsRunning[relatedAction].is_alive(): 205 # status=True 206 # break 207 # self._debug("Running:" +str(status)) 196 208 return(status) 197 209 #def is_action_running
Note: See TracChangeset
for help on using the changeset viewer.