(taskId: any)
| 446 | * @throws JsonHTTPResponseWithMessage if missing or invalid |
| 447 | */ |
| 448 | export function validateTaskIdInPayload(taskId: any): void { |
| 449 | if (isNullish(taskId)) { |
| 450 | throw new JsonHTTPResponseWithMessage('taskId must be provided'); |
| 451 | } |
| 452 | validateTaskId(taskId, "taskId") |
| 453 | } |
| 454 | |
| 455 | /** |
| 456 | * Validates inProgressTaskIds for K8s worker shutdown route. |
no test coverage detected