(taskRef = {})
| 40 | } |
| 41 | |
| 42 | function normalizeTaskState(taskRef = {}) { |
| 43 | const status = String(taskRef?.status || '').trim().toLowerCase(); |
| 44 | const paused = Boolean(taskRef?.paused) || status === 'paused'; |
| 45 | return { ...taskRef, status, paused }; |
| 46 | } |
| 47 | |
| 48 | function trackBatchTask(key, taskRef = null) { |
| 49 | if (!Object.prototype.hasOwnProperty.call(activeBatchTasks, key)) return; |
no outgoing calls
no test coverage detected