Debug WorkManager

If you notice that your workers run too often or not at all, here are a couple of debugging steps that can help to discover what might be going on.

Enable Logging

To determine why your workers aren't running properly, it can be very useful to look at verbose WorkManager logs. To enable logging, you need to use custom initialization. First, disable the default WorkManagerInitializer in your AndroidManifest.xml by creating a new WorkManager provider with the manifest-merge rule remove applied:


Now that the default WorkManager initializer is disabled, you can use on-demand initialization. To do so, the class needs to provide an implementation for


class MyApplication() : Application(), Configuration.Provider {
    override fun getWorkManagerConfiguration() =


public class MyApplication extends Application implements Configuration.Provider {
    public Configuration getWorkManagerConfiguration() {
        return new Configuration.Builder()

When you define a custom WorkManager configuration, your WorkManager will be initialized when you call WorkManager.getInstance(Context) rather than automatically at application startup. See Custom WorkManager Configuration and Initialization for more information, including support for versions of WorkManager before 2.1.0.

With DEBUG logging enabled, you will start seeing a lot more logs with the log-tag prefix WM-.

Use adb shell dumpsys jobscheduler

On API level 23 or higher, you can run the command adb shell dumpsys jobscheduler to look at the list of jobs which have been attributed to your package.

You should see something like this:

JOB #u0a172/4: 6412553
  u0a172 tag=*job*/
  Source: uid=u0a172 user=0
    Requires: charging=false batteryNotLow=false deviceIdle=false
    Extras: mParcelledData.dataSize=180
    Network type: NetworkRequest [ NONE id=0, [ Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&VALIDATED Uid: 10172] ]
    Minimum latency: +1h29m59s687ms
    Backoff: policy=1 initial=+30s0ms
    Has early constraint
  Required constraints: TIMING_DELAY CONNECTIVITY [0x90000000]
  Unsatisfied constraints: TIMING_DELAY CONNECTIVITY [0x90000000]
  Implicit constraints:
    readyNotDozing: true
    readyNotRestrictedInBg: true
  Standby bucket: RARE
  Base heartbeat: 0
  Enqueue time: -51m29s853ms
  Run time: earliest=+38m29s834ms, latest=none, original latest=none
  Last run heartbeat: 0
  Ready: false (job=false user=true !pending=true !active=true !backingup=true comp=true)

When using WorkManager, the component responsible for managing Worker execution is SystemJobService (on API level 23 or higher). You should look for instances of jobs which are attributed to your package name and

For every job, the output from the command lists required, satisfied, and unsatisfied constraints. You should check to see if your worker’s constraints are fully satisfied.

You can use this to check if SystemJobService was invoked recently. The output also includes job history for recently executed jobs:

Job history:
     -1h35m26s440ms   START: #u0a107/9008
     -1h35m26s362ms  STOP-P: #u0a107/9008 app called jobFinished

Request diagnostic information from WorkManager 2.4.0+

On debug builds of your application you can request diagnostic information from WorkManager 2.4.0+ using:

adb shell am broadcast -a "" -p "<your_app_package_name>"

This provides information on:

  • Work requests that were completed in the last 24 hours.
  • Work requests that are currently running.
  • Scheduled work requests

Here is what it could look like (the output is visible through logcat):

adb shell am broadcast -a "" -p ""

adb logcat
2020-02-13 14:21:37.990 29528-29660/ I/WM-DiagnosticsWrkr: Recently completed work:
2020-02-13 14:21:38.083 29528-29660/ I/WM-DiagnosticsWrkr: Id  Class Name   State  Unique Name Tags
    08be261c-2def-4bd6-a716-1e4410968dc4    SUCCEEDED  null
    48ce04f1-8df9-450b-96ec-6eceabb9c690    SUCCEEDED  null
    c46f4699-c384-440c-a10e-26d56ce02963    SUCCEEDED  null
    ce125372-046e-484e-949f-9abb35ce62c3    SUCCEEDED  null
    72887ddd-8ed1-4018-b798-fac218e95e16    SUCCEEDED  null
    dcff3d61-320d-4996-8644-5d97944bd09c    SUCCEEDED  null
    acab0bf7-6087-43ad-bdb5-be0df9195acb    SUCCEEDED  null
    23136bcd-01dd-46eb-b910-0fe8a140c2a4   SUCCEEDED  null
    245f4879-c6d2-4997-8130-e4e90e1cab4c   SUCCEEDED  null
    17d05835-bb61-429a-ad11-fe43fc320a54   SUCCEEDED  null
    e95f12be-4b0c-4e64-88da-8ee07a31e42f   SUCCEEDED  null
    431c3ec2-4a55-469b-b50b-4072d35f1232   SUCCEEDED  null
    883a388f-f911-4098-9143-37bd8fbc098a   SUCCEEDED  null
    b904163c-6822-4299-8d5a-78df49b7e53d   SUCCEEDED  null
    453fd7b9-2b16-45b9-abc5-3d2ce7b6a4ba   SUCCEEDED  null
2020-02-13 14:21:38.083 29528-29660/ I/WM-DiagnosticsWrkr: Running work:
2020-02-13 14:21:38.089 29528-29660/ I/WM-DiagnosticsWrkr: Id  Class Name   State  Unique Name Tags
    b87c8a4f-4ac6-4e25-ba3e-4cea53ce468a    RUNNING    null