>_
.issue.db
/highway-workflow-engine
Dashboard
Issues
Memory
Lessons
Audit Log
New Issue
Edit Issue #521
Update issue details
Title *
Description
**File:** api/blueprints/v1/workflows.py:236-256 **Problem:** Two concurrent submissions of same workflow can both SELECT (no definition found), both INSERT, causing duplicate key error instead of returning existing definition. **Fix:** Use INSERT ... ON CONFLICT: ```sql INSERT INTO workflow_definition (definition_id, definition_hash, ...) VALUES (%s, %s, ...) ON CONFLICT (definition_hash, tenant_id) DO UPDATE SET definition_id = EXCLUDED.definition_id RETURNING definition_id, version ``` **Impact:** 500 errors on concurrent workflow submissions.
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