- Регистрация
 - 02.01.2017
 
- Сообщения
 - 527
 
- Благодарностей
 - 113
 
- Баллы
 - 43
 
Hi guys!
We deploy a web based task manager and, at this time, it work only as single thread.
With follow c# code we can get if instance is running or no:
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Now I need to see how much active threads that project is running, as example, If I sold to my client a maximum of 5 threads, I want to start maximum 5 threads.
From task list we can retreive a lot of informations but no information about number of running threads:
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
There is any code to retreive number of active threads running in one project.
								We deploy a web based task manager and, at this time, it work only as single thread.
With follow c# code we can get if instance is running or no:
			
				Код:
			
		
		
		string ids = "7b4e8688-5235-452c-a9b1-85b503f14ce7";
Guid g = new Guid(ids);
return ZennoPoster.GetTaskInfo(g);
	From task list we can retreive a lot of informations but no information about number of running threads:
			
				Код:
			
		
		
		<Id>2a267673-1d79-44be-aa36-e213a32b2d5f</Id>
<Name>Stone_SQL</Name>
<IsNewbie>True</IsNewbie>
<IsEnable>True</IsEnable>
<CreateTime>07/13/2018 08:07:16</CreateTime>
<SettingsType>InputSettings</SettingsType>
<ExecutionSettings>
    <Id>a79ce861-e1ef-4c3e-973e-a4ef2282c804</Id>
    <LimitOfThreads>1</LimitOfThreads>
    <MaxAllowOfThreads>0</MaxAllowOfThreads>
    <DoneSuccesfully>8360</DoneSuccesfully>
    <DoneAll>826</DoneAll>
    <NumberOfTries>0</NumberOfTries>
    <LastNumberOfTries>826</LastNumberOfTries>
    <Priority>50</Priority>
    <Proxy>DoNotUseProxy</Proxy>
    <Status>Schedule</Status>
    <ProxyLabels></ProxyLabels>
    <ShouldBeExecutedRandomly>False</ShouldBeExecutedRandomly>
    <GroupLabels>Client118</GroupLabels>
    <GroupStates>Scheduled</GroupStates>
    <MaxNumOfSuccesStop>-1</MaxNumOfSuccesStop>
    <MaxNumOfFailStop>-1</MaxNumOfFailStop>
    <NumOfFailStop>0</NumOfFailStop>
    <ShowTask>False</ShowTask>
    <TraceTask>False</TraceTask>
</ExecutionSettings>
<SchedulerSettings>
    <Id>e487990c-15c7-4a6e-a4ee-a4995ef622ee</Id>
    <StartDate>07/13/2018 08:07:00</StartDate>
    <ShedulerOnDate>07/13/2018 08:07:00</ShedulerOnDate>
    <EndDate>07/13/2019 08:07:00</EndDate>
    <RepetitionCount>1</RepetitionCount>
    <ScheduleType>EveryMinutes</ScheduleType>
    <RepeatType>WithoutEnd</RepeatType>
    <ActivateTime>01/01/0001 00:00:00</ActivateTime>
    <ActivateWorkTime>01/01/0001 00:00:00</ActivateWorkTime>
    <IsActive>True</IsActive>
    <NumberOfTries>1</NumberOfTries>
    <Minutes>15</Minutes>
    <Days>1</Days>
    <LastScheduleDate>11/14/2018 14:37:00</LastScheduleDate>
    <NextScheduleDate>11/14/2018 14:52:00</NextScheduleDate>
    <IsClearSucces>False</IsClearSucces>
    <GroupName></GroupName>
</SchedulerSettings>
<TriggerSettings>
    <Id>f2652d9d-b476-4c0a-af64-0bac06fffabf</Id>
    <CheckFileExistanse>False</CheckFileExistanse>
    <CheckFilePath></CheckFilePath>
    <RemoveCheckFile>True</RemoveCheckFile>
    <NumberOfTries>0</NumberOfTries>
    <IsClearSucces>False</IsClearSucces>
</TriggerSettings>
<Project>
    <ProjectFileLocation>\\192.168.25.141\Taks\L.xmlz</ProjectFileLocation>
    <ProjectType>Assembly</ProjectType>
</Project>
	
								
									Последнее редактирование: 
									
							
						
						
	
					