Add possibility to check number of threads in execution

  • Автор темы Автор темы EtaLasquera
  • Дата начала Дата начала

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
527
Реакции
113
Баллы
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?
 
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.
 
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!
 
Последнее редактирование:

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