Flubbed SMTP settings, kill stuck mail.send tasks?

Hi all - was playing with SSL/TLS settings and have two mail.send tasks that are stuck at 0.00% for an hour or two now.

Is there a way to kill these tasks from the task list?

Thanks!

midclt call core.get_jobs | jq '.[] | select(.method == "mail.send" and .state == "RUNNING")'

to grab the ids, then

midclt call core.job_abort <ID>

I don’t know if there is a better solution, but i have used this for similar reason (replication stuck, i just set the filter accordingly your use case)