MCPcopy
hub / github.com/parse-community/parse-server / checkJobStatus

Function checkJobStatus

spec/CloudCode.spec.js:2137–2140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2135 .then(async response => {
2136 const jobStatusId = response.headers['x-parse-job-status-id'];
2137 const checkJobStatus = async () => {
2138 const jobStatus = await getJobStatus(jobStatusId);
2139 return jobStatus.get('finishedAt') && jobStatus.get('message') === 'Hello, world!!!';
2140 };
2141 while (!(await checkJobStatus())) {
2142 await new Promise(resolve => setTimeout(resolve, 100));
2143 }

Callers 1

CloudCode.spec.jsFile · 0.85

Calls 2

getJobStatusFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected