Skip to content

Commit

Permalink
Merge pull request conductor-oss#258 from Robban1980/feature/handle_d…
Browse files Browse the repository at this point in the history
…uplicate_event_inserts_postgres

Handle duplicate event inserts gracefully when using Postgresql
  • Loading branch information
v1r3n authored Sep 13, 2024
2 parents 927e93d + dec0f4d commit 2b910de
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,8 @@ private boolean insertEventExecution(Connection connection, EventExecution event

String INSERT_EVENT_EXECUTION =
"INSERT INTO event_execution (event_handler_name, event_name, message_id, execution_id, json_data) "
+ "VALUES (?, ?, ?, ?, ?)";
+ "VALUES (?, ?, ?, ?, ?) "
+ "ON CONFLICT DO NOTHING";
int count =
query(
connection,
Expand Down

0 comments on commit 2b910de

Please sign in to comment.