Skip to content
Snippets Groups Projects
Unverified Commit 906a56c3 authored by Matthias Urhahn's avatar Matthias Urhahn Committed by GitHub
Browse files

Increase transaction timeout (EXPOSUREAPP-3238) (#1406) (#1439)


* Increase transaction timeout to 8 minutes.

* Fix timeout variable test.

* Adjust code comment to mention the 10min limit.

Co-authored-by: default avatarRalf Gehrer <ralfgehrer@users.noreply.github.com>
Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>

Co-authored-by: default avatarRalf Gehrer <ralfgehrer@users.noreply.github.com>
Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
parent 4a6e4398
No related branches found
No related tags found
No related merge requests found
......@@ -33,8 +33,10 @@ object TimeVariables {
/**
* The maximal runtime of a transaction
* In milliseconds
* Stay below 10min with this timeout!
* We only 10min background execution time via WorkManager.
*/
private const val TRANSACTION_TIMEOUT = 180000L
private const val TRANSACTION_TIMEOUT = 8 * 60 * 1000L
/**
* Getter function for [TRANSACTION_TIMEOUT]
......
......@@ -16,7 +16,7 @@ class TimeVariablesTest {
@Test
fun getTransactionTimeout() {
Assert.assertEquals(TimeVariables.getTransactionTimeout(), 180000L)
Assert.assertEquals(TimeVariables.getTransactionTimeout(), 480000L)
}
@Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment