The add_task_log routine add a log entry
for the task with the specified ID. You can use this routine
with an application-level task as well and it does not require
an application-managed user ID.
Press CTRL+C to copymysql> CALL mysql_tasks.add_task_log( IN 'task_id' VARCHAR(36), IN 'message' VARCHAR(2000), IN 'data' JSON, IN progress SMALLINT, IN 'status' ENUM );
Following are add_task_log parameters:
task_idVARCHAR(36): specifies the unique task ID (UUID) of the task for which you want to add logs.messageVARCHAR(2000): specifies the log message to add.dataJSON: specifies additional log data. If there is no additional data, set toNULL.progressSMALLINT: specifies the task progress percentage from0to100.statusENUM: specifies the current task status. Possible values are:SCHEDULED,RUNNING,COMPLETED,ERROR, orCANCELLED.