PIX-14773: guard position_poller stale cleanup against re-entry #540
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/fullstack/pix-14773-stale-protection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Что сделано\n- Усилен stale cleanup в backend/app/services/position_poller.py: UPDATE по trailing_stops/take_profit_levels теперь guarded snapshot-полями fetched row, а не только id/status.\n- Добавлен регрессионный тест re-entry race: старый poller snapshot не отменяет свежую protection row с тем же id/status после повторного входа.\n\nКак проверено\n- pytest -q backend/tests/test_position_poller_stale_protection_cleanup.py -> 2 passed\n- git diff --check -> без замечаний\n\nPaperclip: PIX-14773\nCommit:
60976c6438