MCPcopy Index your code
hub / github.com/vladmandic/sdnext / interruptsync

Function interruptsync

cli/sdapi.py:151–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149
150
151def interruptsync():
152 res = getsync('/sdapi/v1/progress?skip_current_image=true')
153 if 'state' in res and res.state.job_count > 0:
154 log.debug({ 'interrupt': res.state })
155 res = postsync('/sdapi/v1/interrupt')
156 return res
157 else:
158 log.debug({ 'interrupt': 'idle' })
159 return { 'interrupt': 'idle' }
160
161
162async def progress():

Callers

nothing calls this directly

Calls 2

getsyncFunction · 0.85
postsyncFunction · 0.85

Tested by

no test coverage detected