From 79130a39e8840fda8f7ef0f15f69ecdce2e46fae Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 6 Apr 2026 16:54:12 -0500 Subject: [PATCH] Mark terrain status complete when profile already exists TerrainProfileWorker early-exited with :ok when a profile existed but never updated the contact status, leaving contacts stuck at queued. --- lib/microwaveprop/workers/terrain_profile_worker.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/microwaveprop/workers/terrain_profile_worker.ex b/lib/microwaveprop/workers/terrain_profile_worker.ex index 1249155b..353d4d94 100644 --- a/lib/microwaveprop/workers/terrain_profile_worker.ex +++ b/lib/microwaveprop/workers/terrain_profile_worker.ex @@ -19,6 +19,7 @@ defmodule Microwaveprop.Workers.TerrainProfileWorker do @impl Oban.Worker def perform(%Oban.Job{args: %{"contact_id" => contact_id}}) do if Terrain.has_terrain_profile?(contact_id) do + Radio.set_enrichment_status!([contact_id], :terrain_status, :complete) :ok else contact = Radio.get_contact!(contact_id)