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

Function getUncompletedTaskEntries

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

Source from the content-addressed store, hash-verified

27}
28
29function getUncompletedTaskEntries() {
30 const taskEntries = Array.from(document.querySelectorAll("#preview .imageTaskContainer .taskStatusLabel"))
31 .filter((taskLabel) => taskLabel.style.display !== "none")
32 .map(function (taskLabel) {
33 let imageTaskContainer = taskLabel.parentNode
34 while (!imageTaskContainer.classList.contains("imageTaskContainer") && imageTaskContainer.parentNode) {
35 imageTaskContainer = imageTaskContainer.parentNode
36 }
37 return imageTaskContainer
38 })
39 if (!processOrder.checked) {
40 taskEntries.reverse()
41 }
42 return taskEntries
43}
44
45async function onTaskStart(task) {
46 if (!task.isProcessing || task.batchesDone >= task.batchCount) {

Callers 3

onIdleFunction · 0.85
onRenderTaskCompletedFunction · 0.85
stopAllTasksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected