MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / stopAllTasks

Function stopAllTasks

ui/media/js/task-manager.js:363–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

361}
362
363async function stopAllTasks() {
364 getUncompletedTaskEntries().forEach((taskEntry) => {
365 const taskStatusLabel = taskEntry.querySelector(".taskStatusLabel")
366 if (taskStatusLabel) {
367 taskStatusLabel.style.display = "none"
368 }
369 const task = htmlTaskMap.get(taskEntry)
370 if (!task) {
371 return
372 }
373 abortTask(task)
374 })
375}
376
377function onTaskErrorHandler(task, reqBody, instance, reason) {
378 if (!task.isProcessing) {

Callers 1

main.jsFile · 0.85

Calls 3

abortTaskFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected