Skip to content

Commit bed4ec1

Browse files
authored
Set Transaction Timeout of TransactionScope to maximum value. (#147)
This restores the previous tx timeout before the TransactionScope changes introduced in 93e1f60. See #119
1 parent 01cc30b commit bed4ec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hangfire.PostgreSql/PostgreSqlWriteOnlyTransaction.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public override void Commit()
6969
var transactionOptions = new TransactionOptions()
7070
{
7171
IsolationLevel = isolationLevel,
72-
Timeout = _options.TransactionSynchronisationTimeout
72+
Timeout = TransactionManager.MaximumTimeout
7373
};
7474

7575
using (var transaction = new TransactionScope(scopeOption, transactionOptions))

0 commit comments

Comments
 (0)