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

Function probeJob

static/js/job.js:247–256  ·  view source on GitHub ↗
(jobId)

Source from the content-addressed store, hash-verified

245}
246
247async function probeJob(jobId) {
248 const r = await fetch(`/api/jobs/${jobId}`);
249 if (!r.ok) {
250 if (r.status === 404) throw new Error("Job no longer exists on the server");
251 throw new Error(`Job probe failed: ${r.status}`);
252 }
253 const s = await r.json();
254 applyState(s);
255 return s;
256}
257
258function startJobPolling(jobId) {
259 stopJobPolling();

Callers 2

tickFunction · 0.85
openFunction · 0.85

Calls 1

applyStateFunction · 0.85

Tested by

no test coverage detected