From 04020336756ddef243c61f056ca972c32cb597b2 Mon Sep 17 00:00:00 2001 From: Allan O Date: Fri, 1 Oct 2021 14:53:08 +0300 Subject: [PATCH] :wrench: Update connection timeouts and event batch size --- opensrp-chw/build.gradle | 4 ++-- .../java/org/smartregister/chw/sync/ChwSyncIntentService.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opensrp-chw/build.gradle b/opensrp-chw/build.gradle index 75faa842fd..e9367397e8 100644 --- a/opensrp-chw/build.gradle +++ b/opensrp-chw/build.gradle @@ -305,8 +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", "MAX_CONNECTION_TIMEOUT", '10' + buildConfigField "int", "MAX_READ_TIMEOUT", '10' buildConfigField "int", "DATABASE_VERSION", '21' } liberia { 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 923c1c4acb..efb9a9c2b5 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 @@ -12,6 +12,6 @@ public int getEventPullLimit() { @Override protected Integer getEventBatchSize(){ - return 180; + return 50; } // Should this be configurable? }