>_
.issue.db
/highway-workflow-engine
Dashboard
Issues
Memory
Lessons
Audit Log
New Issue
Edit Issue #524
Update issue details
Title *
Description
**File:** api/blueprints/v1/tenant_apps.py:174-200 **Problem:** Check for existing installation (SELECT) then INSERT is not atomic. Two concurrent installs can both pass the SELECT check, then one fails with duplicate key error (500) instead of 409 conflict. **Fix:** Catch UniqueViolation: ```python try: cur.execute("INSERT INTO highway.tenant_app_installations ...") except psycopg.errors.UniqueViolation: return error_response("App is already installed", status_code=409, code="APP_ALREADY_INSTALLED") ``` **Impact:** 500 errors on concurrent app installations.
Priority
Low
Medium
High
Critical
Status
Open
In Progress
Closed
Won't Do
Due Date (YYYY-MM-DD)
Tags (comma separated)
Related Issues (IDs)
Enter IDs of issues related to this one. They will be linked as 'related'.
Update Issue
Cancel