Files
ukmesh/viewshed-worker/worker.py
hermes-gadget 4914eb4bcb fix(viewshed): scope side-effect markers to the coverage generation (#47) (#272)
A node-keyed marker left by an earlier successful run could vouch for a
newer coverage row after a model-version bump or elevation backfill, so a
failure between store_coverage() and link admission/publish was ACKed on
retry with the link jobs and notifications never produced.

Key the Redis marker by the coverage row's model_version + calculated_at
generation and compare on read; a stale marker now forces a replay. Also
fail closed when link replay has no node position instead of marking the
row complete.
2026-11-27 13:45:50 +00:00

19 lines
511 B
Python

#!/usr/bin/env python3
"""MeshCore coverage/link worker process entrypoint."""
import logging
import os
from worker_settings import parse_settings
from worker_context import WorkerContext
from osgeo import gdal
from worker_runtime import main
if __name__ == "__main__":
gdal.UseExceptions()
logging.basicConfig(
level=logging.INFO,
format="[%(asctime)s] %(levelname)s %(message)s",
datefmt="%H:%M:%S",
)
main(context=WorkerContext(settings=parse_settings(os.environ)))