* @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)
| 285 | * @note Throws error instead of returning null |
| 286 | */ |
| 287 | async 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 | /** |
no test coverage detected