This function allows you to update a task.
Example, ["TaskName", "State"] call ETR_fnc_updatetask;
1. TaskName the unique identifier for the task
2. State can be: succeeded/failed/canceled/assigned/created
["Task1", "succeeded"] call ETR_fnc_updatetask;