mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-12-06 03:14:09 +00:00
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.
19 lines
511 B
Python
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)))
|