Fixed
Status Update
Comments
su...@google.com <su...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit bce60539c0944b4b449a6f03419f62715536c867
Author: Sumir Kataria <sumir@google.com>
Date: Wed Jan 23 00:05:10 2019
Revert "Mark jobs as completed, if they were never enqueued."
This reverts commit 77767a7c8c7d6f757c6110ebac2536be6e3b69ee.
Reason for revert: b/123211993
Change-Id: I503f2479d0a123f1a85cc45193cae976dadd10d6
M work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/SystemJobServiceTest.java
M work/workmanager/src/main/java/androidx/work/impl/WorkManagerImpl.java
M work/workmanager/src/main/java/androidx/work/impl/background/systemjob/SystemJobService.java
M work/workmanager/src/main/java/androidx/work/impl/utils/StartWorkRunnable.java
https://android-review.googlesource.com/881112
https://goto.google.com/android-sha1/bce60539c0944b4b449a6f03419f62715536c867
Branch: androidx-master-dev
commit bce60539c0944b4b449a6f03419f62715536c867
Author: Sumir Kataria <sumir@google.com>
Date: Wed Jan 23 00:05:10 2019
Revert "Mark jobs as completed, if they were never enqueued."
This reverts commit 77767a7c8c7d6f757c6110ebac2536be6e3b69ee.
Reason for revert:
Change-Id: I503f2479d0a123f1a85cc45193cae976dadd10d6
M work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/SystemJobServiceTest.java
M work/workmanager/src/main/java/androidx/work/impl/WorkManagerImpl.java
M work/workmanager/src/main/java/androidx/work/impl/background/systemjob/SystemJobService.java
M work/workmanager/src/main/java/androidx/work/impl/utils/StartWorkRunnable.java
Description
Version used: 1.0.0-beta02
Devices/Android versions reproduced on: Nexus 5X API 28 Emulator (28.1.3-5243232) and Samsung J5 phone with 8.1.0
Steps to reproduce:
- Run application, monitoring logcat
- Press Enqueue
- Toast will be displayed and the log should indicate the worker started, failed and requested a retry
- Monitor the logcat for a few minutes and observe that no worker has been retried
This is intermittent but happens 90% of the time. If the Worker does retry, hit Enqueue again and it will likely fail to retry the new worker.
Expected Behaviour:
The worker should be retried after 10 seconds and up to 5 times in total before failing.