Skip to content

馃悶Workmanager().registerOneOffTask no more runs the task immediately and now cancelling tasks as failed after 30 seconds#742

Description

@absar

Hi @ened retested using v0.10.10, issue reported in #738 and #732 is still not fixed:
Before closing the issue could we please run the example app to check whether the fix is working preferably on an Android 16+ devices or emulator, since just the unit tests might not be enough for real device/emulator issues.

W/JobInfo ( 7318): Requested important-while-foreground flag for job1 is ignored and takes no effect
D/WM-SystemJobScheduler( 7318): Scheduling work ID 53748bde-74ff-49b2-8632-2616eba8a592Job ID 1
D/WM-GreedyScheduler( 7318): Starting work for 53748bde-74ff-49b2-8632-2616eba8a592
D/WM-Processor( 7318): Processor: processing WorkGenerationalId(workSpecId=53748bde-74ff-49b2-8632-2616eba8a592, generation=0)
D/WM-WorkerWrapper( 7318): Starting work for dev.fluttercommunity.workmanager.BackgroundWorker
D/WM-SystemJobService( 7318): onStartJob for WorkGenerationalId(workSpecId=53748bde-74ff-49b2-8632-2616eba8a592, generation=0)
D/WM-Processor( 7318): Work WorkGenerationalId(workSpecId=53748bde-74ff-49b2-8632-2616eba8a592, generation=0) is already enqueued for processing

After a few seconds the task gets cancelled without even running the callback:
I/WM-WorkerWrapper( 7318): Worker result FAILURE for Work [ id=53748bde-74ff-49b2-8632-2616eba8a592, tags={ dev.fluttercommunity.workmanager.BackgroundWorker } ]
D/WM-Processor( 7318): Processor 53748bde-74ff-49b2-8632-2616eba8a592 executed; reschedule = false
D/WM-SystemJobService( 7318): 53748bde-74ff-49b2-8632-2616eba8a592 executed on JobScheduler
D/WM-GreedyScheduler( 7318): Cancelling work ID 53748bde-74ff-49b2-8632-2616eba8a592
D/WM-SystemJobService( 7318): onStopJob for WorkGenerationalId(workSpecId=53748bde-74ff-49b2-8632-2616eba8a592, generation=0)
D/WindowOnBackDispatcher( 7318): setTopOnBackInvokedCallback (unwrapped): android.app.Activity$$ExternalSyntheticLambda0@5628e2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions