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

Method put

ui/easydiffusion/task_manager.py:187–194  ·  view source on GitHub ↗
(self, task: Task, ttl=TASK_TTL)

Source from the content-addressed store, hash-verified

185 return tasks
186
187 def put(self, task: Task, ttl=TASK_TTL):
188 task_id = task.id
189 self._tasks_ids.append(task_id)
190 if not task_cache.put(task_id, task, ttl):
191 return False
192 while len(self._tasks_ids) > len(render_threads) * 2:
193 self._tasks_ids.pop(0)
194 return True
195
196
197def keep_task_alive(task: Task):

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected