Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Issue while scheduling Firebase JobDispatcher job - Too many tasks scheduled for this package. Not scheduling #155

Closed
abhinavbr opened this issue Sep 14, 2017 · 9 comments

Comments

@abhinavbr
Copy link

abhinavbr commented Sep 14, 2017

We are using firebase-jobdispatcher version 0.6.0 for scheduling our jobs. When we try to schedule new jobs we get -
NetworkScheduler: Too many tasks scheduled for this package. Not scheduling: [package.name/com.firebase.jobdispatcher.GooglePlayReceiver:taskFailed,u0]

More information - We are scheduling 6 jobs and using setreplacecurrent(true) on all of them.

Edit 1: This issue persists even when I reinstall the app but goes away when I change package name of the app. Also, when I check number of task count by user and package name using "adb shell dumpsys activity service GcmService --endpoints", it shows 110. The number of task for my app's package remain same after uninstalling the app and calling cancelAll with FirebaseJobDispatcher.

@unEgor
Copy link
Contributor

unEgor commented Sep 14, 2017

Hi
Thank you for reporting the bug. The fix will be release with new version 0.8.2 of firebase-jobdispatcher-android.

@abhinavbr
Copy link
Author

@unEgor Thanks for the quick response. Is there a temporary fix that I can use in the meantime?

@tgb2006
Copy link

tgb2006 commented Sep 20, 2017

I am facing Same Issue. Is there any workaround?

@unEgor
Copy link
Contributor

unEgor commented Sep 21, 2017

@unEgor unEgor closed this as completed Sep 21, 2017
@tschuchortdev
Copy link

tschuchortdev commented Sep 23, 2017

I'm depending on version 0.8.2 and still getting this error. Do you somehow have to cancel all the existing jobs before updating for the fix to take effect? Even uninstalling the app doesn't help.

@abhinavbr
Copy link
Author

@tschuchortdev The only solution I have found so far is to restart the phone. Restarting the phone clears all the tasks.

@unEgor unEgor reopened this Sep 24, 2017
@tschuchortdev
Copy link

restarting the device after upgrading to 0.8.2 seems to fix the error for now.

@unEgor
Copy link
Contributor

unEgor commented Sep 26, 2017

Unfortunately I'm not able to reproduce it on 0.8.2
Could you please provide exact steps and version of Google Play Services?
And the bugreport if it is possible.

@tschuchortdev
Copy link

Google Play Services version: 11.6.73

To reproduce, use version 0.8.1 to trigger the bug, then upgrade to 0.8.2 and scheduling tasks should still fail with the same error until all tasks are cleared by restarting the device.

Not something worth investigating probably, since it only seems to occur in this specific scenario.

@unEgor unEgor closed this as completed Sep 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants