Fixed
Status Update
Comments
ra...@google.com <ra...@google.com> #2
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 1cb6e0067fb2ccd9cf46557bf14cf2e28149bca3
Author: Rahul Ravikumar <rahulrav@google.com>
Date: Tue Jan 15 14:24:59 2019
WorkerWrapper ensures that work which has been backed off runs per schedule.
Test: Added unit tests.
Change-Id: Iadb5fc47f021783c692167af23dba9564e96c244
Fixes: b/122881597
M work/workmanager/src/androidTest/java/androidx/work/impl/WorkerWrapperTest.java
M work/workmanager/src/main/java/androidx/work/impl/WorkerWrapper.java
https://android-review.googlesource.com/873094
Branch: androidx-master-dev
commit 1cb6e0067fb2ccd9cf46557bf14cf2e28149bca3
Author: Rahul Ravikumar <rahulrav@google.com>
Date: Tue Jan 15 14:24:59 2019
WorkerWrapper ensures that work which has been backed off runs per schedule.
Test: Added unit tests.
Change-Id: Iadb5fc47f021783c692167af23dba9564e96c244
Fixes:
M work/workmanager/src/androidTest/java/androidx/work/impl/WorkerWrapperTest.java
M work/workmanager/src/main/java/androidx/work/impl/WorkerWrapper.java
Description
Version used: 1.0.0-beta01
Devices/Android versions reproduced on: Samsung J1 (6.0.1)
I run Worker with exponential backoff strategy and 60 seconds initial delay, however worker is being executed after retry without delay (see log).
The issue is reproducible on Samsung J1 (6.0.1), and partially reproducible on emulator 6.0 (the second retry attempt is made 5 seconds after the first, then works as expected). You may refer to sample project in attachments to try to reproduce the issue.