Feature Request P3
Status Update
Comments
je...@google.com <je...@google.com> #3
Hi,
Asking for an update for this because we use periodic workers a lot in our app and there's currently no easy way to test whether the periodic work runs correctly.
It'd be great if the WM team could expose some kind of debug service (e.g. making the adb shell run command work) for these workers, it will improve the development workflow and help catch bugs before they reach our users.
Description
Component used: androidx.work:work-runtime-ktx; androidx.work:work-rxjava2
Version used: 2.8.1
Devices/Android versions reproduced on: any version and device
Steps to reproduce:
enqueueUniquePeriodicWork
to enqueuePeriodicWorkRequest
without any constraints and with repeatInterval 24h:SomeWorker
with adb command:According to the command's documentation the
-f
option should run the job even if technical constraints are not currently met.Expected result:
SomeWorker
is executedActual result:
Note: this issue was not present in version 2.7.1. The issue is still present in 2.9.0-alpha02.