MCPcopy Create free account
hub / github.com/AS-AIGC/TranscriptHub / check_task_status

Function check_task_status

apps/backend/services/task_service.js:287–299  ·  view source on GitHub ↗

* @brief Query current status of a transcription task * * @param data [in] Task query parameters: * - objid [BigInt] Task identifier to check * * @return SQL result object containing: * - recordset: Task record with current status * - rowsAffected: Number of records found * @throws Err

(data)

Source from the content-addressed store, hash-verified

285 * @note Throws error instead of returning null
286 */
287async function check_task_status(data) {
288 const query_task_status = TASK_QUERIES.CHECK_TASK_STATUS;
289 try {
290 const pool = await pool_promise;
291 const result = await pool.request()
292 .input('objid', sql.BigInt, data.objid)
293 .query(query_task_status);
294 return result;
295 } catch (err) {
296 logger(LOG_LEVEL.ERROR, `check_task_status ${err}.`);
297 throw err;
298 }
299}
300
301
302/**

Callers 1

cancel_task_controllerFunction · 0.85

Calls 1

loggerFunction · 0.85

Tested by

no test coverage detected