MCPcopy Index your code
hub / github.com/simstudioai/sim / pickLatestStartedMarker

Function pickLatestStartedMarker

apps/sim/lib/logs/execution/progress-markers.ts:132–139  ·  view source on GitHub ↗
(
  a: ExecutionLastStartedBlock | undefined,
  b: ExecutionLastStartedBlock | undefined
)

Source from the content-addressed store, hash-verified

130 * holds it. ISO UTC timestamps compare correctly lexicographically.
131 */
132export function pickLatestStartedMarker(
133 a: ExecutionLastStartedBlock | undefined,
134 b: ExecutionLastStartedBlock | undefined
135): ExecutionLastStartedBlock | undefined {
136 if (!a) return b
137 if (!b) return a
138 return a.startedAt >= b.startedAt ? a : b
139}
140
141/** Pick the later of two last-completed markers by `endedAt`. See {@link pickLatestStartedMarker}. */
142export function pickLatestCompletedMarker(

Callers 3

fetchLogDetailFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected