Skip to content

Commit

Permalink
Updated PostgresExecutionDAO insertEventExecution to do nothing on du…
Browse files Browse the repository at this point in the history
…plicate inserts.
  • Loading branch information
Robban1980 committed Sep 13, 2024
1 parent 61a14fd commit bcb0224
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies {
implementation project(':conductor-redis-persistence')
// implementation project(':conductor-cassandra-persistence')
implementation project(':conductor-postgres-persistence')
// implementation project(':conductor-mysql-persistence')
//implementation project(':conductor-mysql-persistence')

//Indexing (note: Elasticsearch 6 is deprecated)
//implementation project(':conductor-es7-persistence')
Expand Down

0 comments on commit bcb0224

Please sign in to comment.