From 3a73ea4fdc853bdf6d327318e8866107b1f3933e Mon Sep 17 00:00:00 2001 From: Allan O Date: Fri, 24 Sep 2021 14:49:53 +0300 Subject: [PATCH 1/2] :construction: Update connection timeouts --- opensrp-chw/build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opensrp-chw/build.gradle b/opensrp-chw/build.gradle index b6c1b539a9..3d09721991 100644 --- a/opensrp-chw/build.gradle +++ b/opensrp-chw/build.gradle @@ -293,8 +293,8 @@ android { togo { dimension = 'baseDimension' applicationIdSuffix ".togo" - versionCode 23 - versionName "1.2.5" + versionCode 24 + versionName "1.2.6" buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '1000' buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '500' buildConfigField "String", 'opensrp_url', '"https://wcaro-tg.smartregister.org/opensrp/"' @@ -305,6 +305,8 @@ android { buildConfigField "String[]", "ALLOWED_LOCATION_LEVELS", '{"National", "Regional" , "District" , "Formation sanitaire", "Supervisor", "Village"}' buildConfigField "String", 'DEFAULT_LOCATION_DEBUG', '"Village"' buildConfigField "String", 'DEFAULT_LOCATION', '"Village"' + buildConfigField "int", "MAX_CONNECTION_TIMEOUT", '5' + buildConfigField "int", "MAX_READ_TIMEOUT", '5' buildConfigField "int", "DATABASE_VERSION", '20' } liberia { From 2c34e698f24a54062691d5a1ec2a264d569c6db6 Mon Sep 17 00:00:00 2001 From: Allan O Date: Fri, 24 Sep 2021 14:50:30 +0300 Subject: [PATCH 2/2] :construction: Reduce sync event batch-size --- .../java/org/smartregister/chw/sync/ChwSyncIntentService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opensrp-chw/src/main/java/org/smartregister/chw/sync/ChwSyncIntentService.java b/opensrp-chw/src/main/java/org/smartregister/chw/sync/ChwSyncIntentService.java index 92b4535b25..4bcd215a1f 100644 --- a/opensrp-chw/src/main/java/org/smartregister/chw/sync/ChwSyncIntentService.java +++ b/opensrp-chw/src/main/java/org/smartregister/chw/sync/ChwSyncIntentService.java @@ -25,6 +25,6 @@ public int getEventPullLimit() { @Override protected Integer getEventBatchSize(){ - return 250; - } + return 180; + } // Should this be configurable? }