Skip to content

Commit

Permalink
Add jsdoc comment to isResidualResult
Browse files Browse the repository at this point in the history
  • Loading branch information
Drarig29 authored Sep 11, 2024
1 parent 5cf21eb commit b61387f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/commands/synthetics/batch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,12 @@ const getPollResultMap = async (api: APIHelper, resultIds: string[]) => {
}
}

/**
* A residual result is either:
* - Still incomplete (from the poll results POV): report it with incomplete data and a warning.
* - Still in progress (from the batch POV): it was never emitted.
* - A timed out retry.
*/
const isResidualResult = (
result: BaseResultInBatch,
emittedResultIds: Set<string>,
Expand Down

0 comments on commit b61387f

Please sign in to comment.