Add possibility to check number of threads in execution

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
526
Благодарностей
112
Баллы
43
We need to check how many threads a project is running, at this time C# ZennoPoster.GetTaskInfo give me if a project is running or no, there is possibility to see if a project is running and number of threads are in execution?
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 453
Благодарностей
5 913
Баллы
113
You can get full number of running threads running in ZennoPoster.
Код:
return ZennoPoster.AllInstances.Count();
If one project is running, you can use it to count threads.
I'll suggest developers add function for counting threads of certain project.
 

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
526
Благодарностей
112
Баллы
43
This!
...
I'll suggest developers add function for counting threads of certain project.
Thank you!!!!!

Now we start only one thread because we can't retreive a "correct number" of threads running:
Код:
pushd %~dp0
@echo off
echo Starting task... (-names "{-Variable.project-}")
"{-Variable.fp-}\TasksRunner.exe" -o ImportInputSettings {-Variable.path-}{-Variable.project-}.xml -ids "{-Variable.ids-}"
"{-Variable.fp-}\TasksRunner.exe" -o SetTries 1 -ids "{-Variable.ids-}"
timeout /t 1
"{-Variable.fp-}\TasksRunner.exe" -o SetThreads 1 -ids "{-Variable.ids-}"
timeout /t 1
"{-Variable.fp-}\TasksRunner.exe" -o StartTask -ids "{-Variable.ids-}"
With that implementation we will improve a lot the result of our jobs, more one time, thank you!
 
Последнее редактирование:

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)