Add per-task image and video cancellation with confirmed worker receipts
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
"""Serve built frontend with a read-only proxy to verify progress; no DB writes."""
|
||||
import http.server,json,pathlib,subprocess,threading,urllib.request,urllib.error
|
||||
import http.server,json,pathlib,subprocess,threading,urllib.request,urllib.error,sys
|
||||
root=pathlib.Path(__file__).resolve().parent.parent
|
||||
public=root/'huobao-source/frontend/.output/public'
|
||||
upstream=json.loads((root/'huobao-data/last-launch.json').read_text())['api'].removesuffix('/api/v1')
|
||||
@@ -18,5 +18,7 @@ class ReadOnly(http.server.SimpleHTTPRequestHandler):
|
||||
super().do_GET()
|
||||
server=http.server.ThreadingHTTPServer(('127.0.0.1',18938),ReadOnly)
|
||||
threading.Thread(target=server.serve_forever,daemon=True).start()
|
||||
try:subprocess.run(['node',str(root/'integration-work/browser-test/verify_progress_ui.cjs')],cwd=root,check=True)
|
||||
script = sys.argv[1] if len(sys.argv)>1 else 'verify_progress_ui.cjs'
|
||||
if script not in {'verify_progress_ui.cjs','verify_cancel_ui.cjs'}:raise ValueError('Unknown UI test')
|
||||
try:subprocess.run(['node',str(root/'integration-work/browser-test'/script)],cwd=root,check=True)
|
||||
finally:server.shutdown()
|
||||
|
||||
Reference in New Issue
Block a user