Changeset 253
- Timestamp:
- 05/14/08 00:21:20 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DistributedEngine/JobManager.cs
r249 r253 70 70 do { 71 71 lock(connectionLock) { 72 if(factory.State != CommunicationState.Opened)73 ResetConnection();74 72 try { 75 73 currentEngineGuid = server.BeginExecuteEngine(zippedEngine); … … 83 81 } 84 82 } catch(CommunicationException communicationException) { 83 ResetConnection(); 85 84 // wait some time and try again (limit with maximal retries if retry count reached throw exception -> engine can decide to stop execution) 86 85 if(retryCount < MAX_CONNECTION_RETRIES) { … … 120 119 int retries = 0; 121 120 do { 122 if(factory.State != CommunicationState.Opened) ResetConnection();123 121 try { 124 122 zippedResult = server.TryEndExecuteEngine(engineGuid, 100); … … 129 127 Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC)); 130 128 } catch(CommunicationException communicationException) { 129 ResetConnection(); 131 130 success = false; 132 131 retries++; … … 156 155 try { 157 156 lock(connectionLock) { 158 if(factory.State != CommunicationState.Opened) ResetConnection();159 157 jobState = server.JobState(engineGuid); 160 158 } … … 165 163 Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC)); 166 164 } catch(CommunicationException communicationException) { 165 ResetConnection(); 167 166 retries++; 168 167 success = false; … … 181 180 try { 182 181 lock(connectionLock) { 183 if(factory.State != CommunicationState.Opened) ResetConnection();184 182 server.BeginExecuteEngine(packedEngine); 185 183 } … … 190 188 Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC)); 191 189 } catch(CommunicationException communicationException) { 190 ResetConnection(); 192 191 success = false; 193 192 retries++;
Note: See TracChangeset
for help on using the changeset viewer.