-
-
Notifications
You must be signed in to change notification settings - Fork 735
Better setup / teardown for JobService #745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #745 +/- ##
============================================
- Coverage 53.39% 53.38% -0.02%
Complexity 1746 1746
============================================
Files 132 132
Lines 10284 10286 +2
Branches 1426 1427 +1
============================================
Hits 5491 5491
- Misses 4338 4340 +2
Partials 455 455
Continue to review full report at Codecov.
|
Maybe I am missing something, but it looks like no matter what, in the |
@Jawnnypoo by success you mean that |
Yeah, it seems like there, we should be checking to see if an exception was thrown by the handler, and if so, reschedule. But maybe that is incorrect thinking, since more than likely the only reason a push would fail would be cases where it would always fail, and it should therefore not be rescheduled. |
I got it, I think your second scenario makes sense. handler.handle() never reaches developer code, it is our own stuff. So if that throws there's something wrong with our handlers and we would end in a schedule loop |
Makes sense 👍 |
Is there something we can do about this codecov thing? |
@Jawnnypoo not easily. I had made a |
I have been playing with |
I'm seeing issues in the current branch...sometimes the push handler crashes because handler is null. |
@rogerhu Are you seeing this in the tests, or in an app using the latest? |
In the app. Let's merge and tag release. I will do more digging to understand what the issue is. |
We don't rely anymore on
onCreate
/onDestroy
to set up and tear down the job service. The service executes jobs in a separate thread so onDestroy is called before we would expect.Fixes #744