发表文章

[Java] 在计划火力点 JobDispatcher 作业时发出-此包计划的任务太多。不调度 Issue while scheduling Firebase JobDispatcher job - Too many tasks scheduled for this package. Not scheduling[firebase-jobdispatcher-android]

abhinavbr 2017-10-9 29

我们正在使用火力点 jobdispatcher 版本的0.6.0 来安排我们的工作。当我们试图安排新的工作, 我们得到
NetworkScheduler: Too many tasks scheduled for this package. Not scheduling: [package.name/com.firebase.jobdispatcher.GooglePlayReceiver:taskFailed,u0]

更多信息-我们正在计划6作业, 并对所有这些工作使用 setreplacecurrent (true)。

编辑 1: 即使当我重新安装应用程序时, 这个问题仍然存在, 但当我更改应用程序的软件包名称时就会消失。另外, 当我使用 "亚行 shell dumpsys 活动服务 GcmService-端点" 检查用户和包名称的任务数时, 它显示110。我的应用程序包的任务数在卸载应用程序后保持不变, 并使用 FirebaseJobDispatcher 调用 cancelAll。

原文:

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.

相关推荐
最新评论 (9)
unegor 2017-10-9
1

你好
感谢您报告 bug。该补丁将推出新版本0.8.2 火力点-jobdispatcher-android。

原文:

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

abhinavbr 2017-10-9
2

@unEgor谢谢你的快速反应。是否有一个暂时的修复, 我可以使用的同时?

原文:

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

tgb2006 2017-10-9
3

我也面临同样的问题。有什么解决方法吗?

原文:

I am facing Same Issue. Is there any workaround?

unegor 2017-10-9
4
tschuchortdev 2017-10-9
5

我根据版本 0.8.2, 仍然得到这个错误。在更新修补程序以使其生效之前, 您是否必须取消所有现有作业?即使卸载该应用程序也没有帮助。

原文:

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 2017-10-9
6

@tschuchortdev目前我发现的唯一解决办法是重新启动电话。重新启动电话将清除所有任务。

原文:

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

tschuchortdev 2017-10-9
7

升级到0.8.2 后重新启动设备似乎现在修复了错误。

原文:

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

unegor 2017-10-9
8

不幸的是, 我不能重现它在0.8。2
请提供谷歌播放服务的具体步骤和版本。
和/bugreport, 如果它是可能的。

原文:

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 2017-10-9
9

谷歌播放服务版本: 11.6.73

若要重现, 请使用版本0.8.1 来触发该 bug, 然后升级到 0.8.2, 并且计划任务在通过重新启动设备清除所有任务之前, 仍然会出现相同的错误。

不值得调查的东西可能, 因为它似乎只发生在这个特定的场景。

原文:

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.

返回
发表文章
abhinavbr
文章数
1
评论数
2
注册排名
60738