0
I am using the following code to generate a Task or Event Schedule in Mysql every 10 seconds:
delimiter |
CREATE EVENT gera_financeiro_contrato
ON SCHEDULE EVERY 10 SECOND STARTS CURRENT_TIMESTAMP ON COMPLETION PRESERVE
COMMENT 'Gera financeiro no contrato'
DO
BEGIN
insert into grupos (nome, ) values (concat('teste -', UNIX_TIMESTAMP() ) );
END|
delimiter ;
The above code is correct and working, but I need to let the user change the frequency of the execution of Task, for example if the task was created to run every 10 seconds ON SCHEDULE EVERY 10 SECOND, how I do for the task read a given table and get the interval value for execution?
Your reply helped me very much thanks, but I have not solved my whole problem and I only saw it after making the task work, thanks!
– Jean Freitas