Skip to content

Tracker worker aborts mid-batch when one tracked title is cancelled; remaining titles are never checked #125

Open

Description

@414n

Brief summary

I'm seeing the tracker worker stop early while checking new chapters for tracked titles and this results in never getting updates for several tracked titles, while these titles do have updates that show up when they are opened manually.

Looking at the "Check for new chapters log" under the settings, I see several sources that report a number of issues/exceptions. Migrating the faulty ones seems to make the worker go further when checking for new chapters.

I did a debug session and it seems like one or more tracked items ends up cancelled (not via a user UI action), so the whole worker batch aborts and WorkManager reports a CancellationException before the other tracked items are processed.

This is one of the CancellationException that I saw happening:

java.util.concurrent.CancellationException: Continuation CancellableContinuation(DispatchedContinuation[androidx.work.impl.utils.taskexecutor.WorkManagerTaskExecutor$1@bea49, Continuation at androidx.work.impl.WorkerWrapper$runWorker$result$1.invokeSuspend(WorkerWrapper.kt:311)@7859337]){Active}@a44a0a4 was cancelled normally

Steps to reproduce

  1. add a title from a source that has some kind of issue right now (like HTTP 429 or 5xx errors) in the bookmarks/favorites
  2. add one or more titles from sources that have no issues to the bookmarks/favorites
  3. try looking for new chapters
  4. the new chapter search ends prematurely

Futon version

9.8.2

Android version

10, 16

Device

No response

Acknowledgements

  • This is not a duplicate of an existing issue. Please look through the list of open issues before creating a new one.
  • This is not an issue with a specific manga source. Otherwise, you have to proceed from parsers repository.
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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions