Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)
Python acoustic-geolocationads-baircraft-trackingairplaneaudio-forensicsdoppler-effectdoppler-shiftgeolocationosintsignal-processing
Report support and retention write activity in job watcher
Cinna Davis66d252fa96a9
diff --git a/README.md b/README.mdindex d810273..ebe31cc 100644--- a/README.md+++ b/README.md@@ -68,7 +68,10 @@ clock window must still be supported by recording metadata or other evidence.The command prints a job ID when queued. In another terminal, run`.venv/bin/dopplergeist job JOB_ID --jobs jobs --watch` to follow the reported-status progress and the count and modification age of coarse/fine search files.+pipeline/grid estimate and the count and modification age of coarse/fine search+files. A separate search-write age includes support JSON and retention database+or WAL writes, so those writes remain visible while a fine payload is pending.+They do not increase the payload count or its file-count rate.These filename-based indicators are unverified filesystem activity, not proofthat payloads or retention evidence are valid or that the corresponding workhas completed.diff --git a/src/dopplergeist/cli.py b/src/dopplergeist/cli.pyindex 6a68691..df7a433 100644--- a/src/dopplergeist/cli.py+++ b/src/dopplergeist/cli.py@@ -215,19 +215,34 @@ def main():age_text=lambda seconds: f"{seconds:.0f}s" if seconds<60 else f"{seconds/60:.1f}m"stale_after=max(60.0,args.interval*3)progress_stale=" (stale)" if result_age>stale_after else ""- progress_text=(f", pipeline progress field {progress:.3f}{progress_stale}"+ progress_text=(f", pipeline/grid estimate field {progress:.3f}{progress_stale}"if isinstance(progress,(int,float)) and math.isfinite(progress) else "")now=time.monotonic()rate=""if previous_count is not None and count >= previous_count and now > previous_time:rate=f", file-count rate {(count-previous_count)*60/(now-previous_time):.1f} files/min"search_files=tiles+fine_files- latest=max(search_files,key=lambda path:path.stat().st_mtime,default=None)- file_age=(f", newest matching file modified {age_text(max(0.0,wall_now-latest.stat().st_mtime))} ago"- if latest else "")+ # Support diagnostics and retention writes show activity, not+ # completed payloads. Keep them outside the count and rate.+ activity_files=(search_files+list((search/"support").glob("*.json"))+ +[search/"retention.sqlite", search/"retention.sqlite-wal"])+ modified={}+ for path in activity_files:+ try:+ modified[path]=path.stat().st_mtime+ except FileNotFoundError:+ # A WAL can disappear during a normal SQLite checkpoint.+ continue+ latest=max((modified[path] for path in search_files if path in modified),default=None)+ file_age=(f", newest matching file modified {age_text(max(0.0,wall_now-latest))} ago"+ if latest is not None else "")+ activity=max(modified,key=modified.get,default=None)+ activity_age=(f", newest search write {age_text(max(0.0,wall_now-modified[activity]))} ago "+ f"({activity.relative_to(search)}; unverified file activity)"+ if activity is not None else "")print(f"{value['status']} ({value.get('stage', 'no stage')}{progress_text}): "f"{count} search files observed (unverified: {len(tiles)} coarse, "- f"{len(fine_files)} fine){rate}{file_age}, "+ f"{len(fine_files)} fine){rate}{file_age}{activity_age}, "f"status updated {age_text(result_age)} ago",file=sys.stderr,flush=True)if value["status"] in {"needs_input", "succeeded", "inconclusive", "failed", "cancelled"}:break