API for tasks

azp

Client
Регистрация
26.12.2012
Сообщения
52
Благодарностей
3
Баллы
8
Scheduler and task manager need a lot of attention when you have many templates, especially if you are updating them due to your needs or updates on site that is used in template.
I think it would be very good feature for advanced user to be able to control running templates from external scripts. It could be done thru simple REST calls from any programming language on zenno server listening on specified port.

Some examples of calls that would make using zenno more effective:

template_name IS_RUNNIG - to check if it is running
template_name MAX_THREADS - set max threads
template_name START
template_name STOP
template_name SUCCESS_COUNT_TOBEDONE - how may success
template_name SUCCESS_COUNT_ALREADY - how may success already
template_name RUN_%XX%_TIMES_INTERVAL_%YY%_MINUTES/HOURS - some random execution
template_name RUN_%XX%_TIMES_DURING_%YY%_HOURS - some random execution
other to be discussed.

I know most of it can be done from .bat files, but it relies on IDs of templates already added in zenno, requiring us first to add template to and then export each template to bat file and process it.
Maybe the simplest way to implement it, would be to .bat files to rely on template names and not on IDs.

What do you think ?
 

V Munich

Пользователь
Регистрация
20.02.2014
Сообщения
85
Благодарностей
3
Баллы
8

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
Here is c# code to control a template called Date and sets the tries and thread count.
 

Вложения

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