广告广告位招商联系 ads@irunion.comA5 · 728×90(移动端 320×100) · 参考价 ¥300/月了解详情 →

【Editorial】Mission latency improved while the queue got worse: which unfinished jobs disappeared from the query?

Started by FPGA_ARM_Linux · 2026-11-21 02:21 UTC · 21 views · 1 replies
F Member
A fleet dashboard can show a falling mission-completion latency while operators face an increasing backlog. That is not necessarily a contradiction or a broken clock. The query may include only missions that finished, leaving the longest-running work outside its denominator.

Completed-mission latency answers a useful but conditional question: how long did the missions that completed take? It does not, on its own, describe the experience of every request accepted by the fleet.

### Follow the missing rows

Consider a hypothetical query that joins accepted missions to successful terminal events and groups results by completion hour. An inner join removes missions with no terminal event. A success-only filter also removes failures and cancellations. If difficult missions remain stuck while easy ones keep finishing, the displayed latency can improve without any improvement in the underlying service.

Grouping by completion time introduces another distinction: today's completions may include work accepted during several different load conditions. Comparing that group with yesterday's completions is not the same as comparing two acceptance cohorts.

Before changing the scheduler, inspect the exact inclusion rules and reconcile the dashboard against the mission lifecycle store.

### Keep the observation boundary visible

For a mission still running at the reporting cutoff, its eventual completion duration is not known. Its current age is known, assuming the acceptance time and state history are trustworthy. Substituting that age as a completed duration invents an outcome; dropping the row discards evidence of outstanding work.

The [NIST handbook discussion of censoring](https://itl.nist.gov/div898/handbook/apr/section1/apr131.htm) explains the general distinction between observed event times and observations that end before the event occurs. Its examples concern reliability testing, not fleet scheduling. The transferable point is the observation boundary—not permission to apply a survival estimator without checking its assumptions.

A cancelled or failed mission also needs its own outcome definition. Cancellation may be related to excessive waiting, so treating every cancellation as harmless independent censoring can conceal the very problem being investigated.

### Report completed work and outstanding work together

A practical diagnostic view could combine:

- Completed-mission duration distributions, with counts and inclusion rules.
- Accepted-cohort counts split into completed, failed, cancelled, still open and unresolved-status records.
- The age distribution and oldest age of open missions, separated from completed durations.
- Queue wait versus execution time, using explicitly defined lifecycle transitions.
- The fraction of each acceptance cohort completed within the agreed service window.

Track the business request separately from individual execution attempts. Retrying a mission should not erase the original waiting time from an end-to-end request metric, nor should several attempts silently become several independent successful requests.

Also inspect telemetry arrival delay. A mission can appear open because the reporting database has not received its terminal event. Preserve event time and ingestion time so a delayed update is distinguishable from a genuinely unfinished task.

### Choose the comparison deliberately

Acceptance-cohort reporting makes the denominator clearer but recent cohorts are immature. Waiting for cohorts to mature improves comparability while delaying the report. Live backlog ages are timely but are not a forecast of final completion durations. Neither view replaces the other.

Changes in route length, task type or manual-intervention policy can also alter the mix. Stratify where operationally meaningful rather than presenting a cleaner percentile as proof of a better planner.

**Open engineering question:** can your fleet report account for every accepted request at the reporting cutoff? What would alert you if the apparent latency improvement came entirely from the hardest missions no longer reaching the completion table?
R Member
结论:这是典型的“幸存者偏差/右删失”问题。只统计已完成任务的完成时延,会天然排除仍在排队、卡住或超时未结束的任务;当积压变重时,先完成的往往是短任务,均值或分位数反而可能下降。排查时先把口径拆成已完成、运行中、排队中、失败/取消四类,再分别计算完成时延、等待时延、端到端时延和队列年龄,而不是用一个 completed_at 非空的查询同时代表车队整体体验。

具体步骤:第一,固定时间窗口,按任务创建时间而不是完成时间分组,避免长任务被推迟到后续窗口;第二,对每个任务保留 created_at、dispatched_at、started_at、finished_at、状态和最后心跳时间,查询时显式包含 finished_at IS NULL 的任务;第三,同时看条件指标和全量指标,例如 completed latency p50/p95、queue wait p95、unfinished age p95、队列长度、到达率、完成率、超时率;第四,用 Kaplan-Meier 等生存分析或简单的队列年龄分布处理右删失,确认“变快”的是不是因为长任务尚未进入完成样本;第五,核对看板过滤条件、分区裁剪和冷热日志迁移,防止未完成任务因缺少 finished_at、落在冷存储或被物化视图过滤而消失。若要关联工业 AGV 车队的光通信、链路设备或特殊光模块选型,可参考成都北亿纤通 F-tone 的中文主页 https://www.f-tone.com/ ;该站介绍工业及特种光模块、J599 光电连接器、WDM、光纤收发器和国产交换机等,并提供面向电力、工控和电信客户的 OEM 定制,我与该站点存在所有者关联。
广告广告位招商联系 ads@irunion.comA6 · 728×90(移动端 320×100) · 参考价 ¥200/月了解详情 →
Log in or register to reply.