-
Notifications
You must be signed in to change notification settings - Fork 734
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
Task scheduling updates for Android #11480
Task scheduling updates for Android #11480
Conversation
Use schedule method to leverage schedule hooks for repeated tasks.
Build Artifacts
|
b572743
to
84cd620
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @rtibbles - no regressions observed in the existing syncing behaviour while manually testing today on several devices.
The Android app behaviour is also unchanged (not syncing after the initial sync) - but as you mentioned this will be tested separately when you prepare a new Android build for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code read through looks okay to me
a9289de
into
learningequality:release-v0.16.x
Summary
References
Should resolve Android syncing issues that were caused by the combination of the existing retry_in behaviour (which set
repeat
to 1) and the update hooks that pass the orm_job to the update hooks after the orm_job has been modified (so repeat would be 0, and no repeat would be scheduled by the Android hook).Does this by making sure that all job scheduling events trigger the schedule hook, and that the update hook is only for processing state updates. This feels like it makes a lot more sense anyway!
Reviewer guidance
The APK generated here will probably mostly work as it is - but I have some correlated changes for Android which I will open in a PR on the Android repo. I will also build an APK from this PR with those changes for testing.
Further testing on Android has shown some issues, but not related to this PR, it seems to have uncovered some weirdness that I hadn't previously observed in properly reading the job_id within the WorkManager context. This PR can be reviewed independently.
@pcenov and @radinamatic please make sure that these changes cause no regressions in existing syncing behaviour.
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)