Fixed
Status Update
Comments
ra...@google.com <ra...@google.com>
ap...@google.com <ap...@google.com> #3
Thank you for the quick fix.
Is there an ETA for the next release?
Is there an ETA for the next release?
Description
Component used: Workmanager Version used: 2.4.0 Devices/Android versions reproduced on: Multiple devices, Nokia 8.1 Android 10, Huawei P30 lite (Android 9), Xaomi Redmi 9 (Android 10)
In our app we run 3 jobs through
WorkManager
and we are observing that sometimes a periodic job that runs the most often is sometimes not added in the system job scheduler after it ran. This can be verified by looking atadb shell dumpsys jobscheduler
. The devices in question have been left alone for a while over a couple of hours.WorkManager.initialize()
will also not restore these missing jobs.One reason for this could be that the system job scheduler implementation isn't checking the return code from
JobScheduler.schedule()
, especially since this issue doesn't happen every single time the job has run.Logs from the app indicate
WorkManager
scheduling job id 7, but this id is not showing up for thenl.rijksoverheid.en
package. Only id 3 & 4, that have been scheduled at the same time as the initial periodic job, are shown in the output:Here's the WorkManager log output after the job has been run: