I have scoured the internet for info on this subject but nobody seems to be experiencing this issue anymore.
Remember this fun error?
java.lang.IllegalStateException: JobScheduler 100 job limit exceeded. We count 101 WorkManager jobs in JobScheduler; we have 50 tracked jobs in our DB; our Configuration limit is 50.
with
Caused by: java.lang.IllegalStateException: Apps may not schedule more than 100 distinct jobs
Well, despite switching a lot of jobs to do enqueueUniqueWork
, it appears some of my users are still hitting that limit. My use case is for people with poor and no connectivity doing a lot of stuff offline and thereby creating lots of jobs to update resources on the remote server. I never had this problem with FirebaseJobDispatcher (at least I wasn't aware of it) and some people may be without signal for days, and what happens if somebody can't connect for weeks? It will easily build up hundreds of jobs. Hence, this error.
My question is what happens to these jobs when the limit is reached? Are they simply discarded by the scheduler? Am I losing people's data right now as I type this?
Update
Android Versions: Confirmed on 7.0, 8.0, 8.1, probably a lot more
WorkManager Version: 2.3.0