개정판 60723dc9
convert 오류 수정
Change-Id: Idcebecb02f64515cc20b61054669368e2f677013
ConvertService/ServiceBase/Markus.Service.Station/StationService/ServiceStationWCF.cs | ||
---|---|---|
144 | 144 |
{ |
145 | 145 |
if (AliveConvertQueue.Count(c => c.UniqueKey == convertItem.UniqueKey) == 0) |
146 | 146 |
{ |
147 |
if (ServiceStation.AliveConvertQueue.Count() < MultiProcessCount)
|
|
147 |
if (ServiceStation.AliveConvertQueue.Count() < ServiceProperty.PROCESS_COUNT)
|
|
148 | 148 |
{ |
149 | 149 |
convertItem.ServiceID = this.ServiceID; |
150 | 150 |
ConvertProcessStart(convertItem); |
... | ... | |
269 | 269 |
} |
270 | 270 |
|
271 | 271 |
/// <summary> |
272 |
/// 동시 작업 프로세스 갯수 변경 |
|
273 |
/// </summary> |
|
274 |
/// <param name="Value"></param> |
|
275 |
/// <returns></returns> |
|
276 |
public bool SettingMultiProcess(int Value) |
|
277 |
{ |
|
278 |
bool result = false; |
|
279 |
|
|
280 |
try |
|
281 |
{ |
|
282 |
MultiProcessCount = Value; |
|
283 |
|
|
284 |
var config = ConfigHelper.AppConfig(configFileName); |
|
285 |
|
|
286 |
config.SetValue(CONFIG_DEFINE.SERVICE, CONFIG_DEFINE.CONVERT_SERVICE_PROCESS, Value.ToString()); |
|
287 |
config.Save(configFileName); |
|
288 |
|
|
289 |
result = true; |
|
290 |
} |
|
291 |
catch (Exception ex) |
|
292 |
{ |
|
293 |
logger.Error("SettingMultiProcess Error ", ex); |
|
294 |
} |
|
295 |
|
|
296 |
return result; |
|
297 |
} |
|
298 |
|
|
299 |
/// <summary> |
|
300 | 272 |
/// WCF 시작 |
301 | 273 |
/// </summary> |
302 | 274 |
/// <returns></returns> |
... | ... | |
347 | 319 |
public bool ReleaseConvertItems() |
348 | 320 |
{ |
349 | 321 |
System.Diagnostics.Debug.WriteLine("Call ReleaseConvertItems"); |
350 |
setDataBaseWaitingList(); |
|
322 |
if (!IsReleaseItems) |
|
323 |
{ |
|
324 |
ReleaseItems(); |
|
325 |
} |
|
326 |
|
|
351 | 327 |
System.Diagnostics.Debug.WriteLine("end ReleaseConvertItems"); |
352 | 328 |
return true; |
353 | 329 |
} |
내보내기 Unified diff