MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / runNow

Function runNow

static/js/selfcheck.js:329–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327}
328
329async function runNow() {
330 const btn = document.getElementById('selfcheck-run-now-btn');
331 if (!btn) return;
332 loading.show(btn, '请求中...');
333 try {
334 const data = await api.post('/selfcheck/schedule/run-now', {});
335 renderRuntime(data?.runtime || {});
336 toast.success(data?.message || '已请求立即执行');
337 await loadRuns();
338 } catch (error) {
339 toast.error(parseErrorMessage(error));
340 } finally {
341 loading.hide(btn);
342 }
343}
344
345async function executeRepair(runId, repairKey, btn) {
346 if (!runId || !repairKey) return;

Callers

nothing calls this directly

Calls 8

renderRuntimeFunction · 0.85
loadRunsFunction · 0.85
parseErrorMessageFunction · 0.85
successMethod · 0.80
errorMethod · 0.80
hideMethod · 0.80
showMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected