SkilldexAll articles

Measure queue wait and execution time separately

Explain whether a slow skill was waiting for capacity, a model, or a tool.

A task can take two minutes from request to completion even though its model and tools finish in ten seconds. If the dashboard measures only execution, the user-visible delay is invisible. If it reports only total time, operators may investigate a healthy dependency.

Record observable timestamps

Capture admission, dequeue, execution start, and terminal state. Use consistent clock handling across services, and calculate elapsed intervals in the component best positioned to measure them accurately. Keep resumed work distinguishable from time spent waiting for user input or approval.

Compare the right populations

Slice interactive and background jobs separately, since their service expectations differ. Watch the oldest queued item alongside average wait. A small number of stuck items can be invisible in a healthy median. Include valid cancellations and timeouts as distinct terminal states.

Use pressure signals together

Rising queue time with stable execution suggests scheduling or capacity pressure. Rising tool duration and stable admission may point to a downstream dependency. Check concurrency, retries, and rejection counts to understand which control can change the outcome before adding more workers.

Sources