Skip to content

Commit

Permalink
Make ProgressLog timeout 1 hour - insane for single-row inserts, but …
Browse files Browse the repository at this point in the history
…2 minutes is still too short...
  • Loading branch information
James A Sutherland committed Jul 28, 2023
1 parent 58fc650 commit 994770f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rdmp.Core/Logging/DataLoadInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public void LogProgress(ProgressEventType pevent, string source, string descript
using var cmdRecordProgress = DatabaseSettings.GetCommand(
"INSERT INTO ProgressLog (dataLoadRunID,eventType,source,description,time) VALUES (@dataLoadRunID,@eventType,@source,@description,@time);",
con);
cmdRecordProgress.CommandTimeout = 120;
cmdRecordProgress.CommandTimeout = 3600;
con.Open();

DatabaseSettings.AddParameterWithValueToCommand("@dataLoadRunID", cmdRecordProgress, ID);
Expand All @@ -269,7 +269,7 @@ public void LogProgress(ProgressEventType pevent, string source, string descript
using var cmdRecordSlowWarning = DatabaseSettings.GetCommand(
"INSERT INTO ProgressLog (dataLoadRunID,eventType,source,description,time) VALUES (@dataLoadRunID,@eventType,@source,@description,@time);",
con);
cmdRecordSlowWarning.CommandTimeout = 120;
cmdRecordSlowWarning.CommandTimeout = 3600;

DatabaseSettings.AddParameterWithValueToCommand("@dataLoadRunID", cmdRecordSlowWarning, ID);
DatabaseSettings.AddParameterWithValueToCommand("@eventType", cmdRecordSlowWarning,
Expand Down

0 comments on commit 994770f

Please sign in to comment.