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

Function get_cached_task

ui/easydiffusion/task_manager.py:321–326  ·  view source on GitHub ↗
(task_id: str, update_ttl: bool = False)

Source from the content-addressed store, hash-verified

319
320
321def get_cached_task(task_id: str, update_ttl: bool = False):
322 # By calling keep before tryGet, wont discard if was expired.
323 if update_ttl and not task_cache.keep(task_id, TASK_TTL):
324 # Failed to keep task, already gone.
325 return None
326 return task_cache.tryGet(task_id)
327
328
329def get_cached_session(session_id: str, update_ttl: bool = False):

Callers

nothing calls this directly

Calls 2

keepMethod · 0.80
tryGetMethod · 0.80

Tested by

no test coverage detected