Prod logs showed road_proximity took 186 s on a single Calculate. Req's receive_timeout only catches TCP idle, not slow streaming, so a trickling Overpass response could not be cancelled. Wrap the call in a Task.yield/shutdown deadline and cache successful results by 0.05°-rounded bbox so adjacent Calculates skip Overpass entirely. |
||
|---|---|---|
| .. | ||
| microwaveprop | ||
| microwaveprop_web | ||
| mix/tasks | ||
| microwaveprop.ex | ||
| microwaveprop_web.ex | ||