Running concurring templates

krisztos

Client
Регистрация
28.06.2014
Сообщения
175
Благодарностей
8
Баллы
18
I have few templates on schedulle. The issue is that they are colliding due to few data usage between themselves. There is no option of changing time, as they are completed in some random time. I would like to insert in one of them some code (I guess some C# I am not able to write) that would check if a list of other are now being executed, so it will stop it from running/put it on hold.
 

Tobbe

Client
Регистрация
01.08.2013
Сообщения
428
Благодарностей
148
Баллы
43
Simply add a step to create a text file as first action in your template, and last (& bad end) delete it.
Check if the file exists. True = Already running, False = Not running.
 

krisztos

Client
Регистрация
28.06.2014
Сообщения
175
Благодарностей
8
Баллы
18
It could be a solution, but in my case the template is colliding with a list of other templates - so I have to enter those actions it in every template. I would rather like to check at the beginning of my tempalte is rest is not running - it can also be triggered when there are 0 active threads - if it's a build in code for that. Of course a list would be much better.
 

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