MCPcopy
hub / github.com/stemdeckapp/stemdeck / tick

Function tick

static/js/job.js:260–267  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258function startJobPolling(jobId) {
259 stopJobPolling();
260 const tick = async () => {
261 try {
262 const s = await probeJob(jobId);
263 if (TERMINAL_STATUSES.has(s.status)) stopJobPolling();
264 } catch (err) {
265 console.warn("[job] REST fallback failed:", err);
266 }
267 };
268 tick();
269 jobPollTimerId = setInterval(tick, 1000);
270}

Callers 1

startJobPollingFunction · 0.70

Calls 2

probeJobFunction · 0.85
stopJobPollingFunction · 0.85

Tested by

no test coverage detected