getContext
getContext(): TaskContextSource: task.ts:105
Runtime metadata for the task currently running.
CODE
async function transform() {
throw new Error(`task ${getContext().taskId} has nothing to transform`);
}Returns
Throws
- when called outside a task handler.