To check and cancel stuck tasks on Dev-tools, follow these steps:1) Use the command 'GET _cat/tasks?v&h=id,ip,action,type,task_id,timestamp,running_time' to identify stuck tasks.2) Use the command 'GET _tasks?actions=*<action>/&detailed' to get details of a specific stuck task.3) Use the command 'POST /_tasks/<task_id>/_cancel' to cancel a long-running task.4) If cancellation is not possible, restart the node where the task is running.