Job 1788377187397

Command: python -c "from pathlib import Path;p=Path('low_latency_relay_v4diag.py');ls=p.read_text(encoding='utf-8').splitlines();start=next(i for i,x in enumerate(ls) if x.startswith('def run_loop'));print('\n'.join(f'{i+1}:{ls[i]!r}' for i in range(start,min(len(ls),start+24))))"
Directory: projects
Status: SUCCESS
Exit code: 0

Cancel Job Rerun Command Refresh

44:'def run_loop():'
45:'    cfg = sr.require_config()'
46:"    sr.log(f'latency-isolation relay starting revision={LIVE_REVISION} poll_workers=1 maintenance=disabled')"
47:'    while True:'
48:'        try:'
49:"            status, data = sr.http_json(sr.web_app_url(cfg, 'poll'), timeout=45)"
50:'            if status != 200:'
51:"                sr.log(f'LL3T poll http={status}')"
52:'                time.sleep(ERROR_BACKOFF_SECONDS)'
53:'                continue'
54:"            command = data.get('command')"
55:'            trace(f\'poll status={status} command={str(command.get("id")) if command else "NONE"}\')'
56:'            if command:'
57:'                process_command(cfg, command)'
58:'        except KeyboardInterrupt:'
59:"            sr.log('LL3T stopped by keyboard interrupt')"
60:'            return'
61:'        except Exception as exc:'
62:"            sr.log(f'LL3T poll error: {type(exc).__name__}: {exc}')"
63:'            time.sleep(ERROR_BACKOFF_SECONDS)'
64:''
65:''
66:"if __name__ == '__main__':"
67:'    run_loop()'