diff options
| author | 2022-05-02 21:56:33 +0000 | |
|---|---|---|
| committer | 2022-05-02 22:43:15 +0000 | |
| commit | 61ffd79f39d1f68b452f503e2f403aa69d9ff6d8 (patch) | |
| tree | be268bc75b7c3c0a268f3de44fbe7aa5c19a7a11 /api/api.go | |
| parent | 50f19f212e927ab5ccf44231a06506d2b126a5ba (diff) | |
Try to avoid overlapping job execution.
In certain situtations, when an app schedules a new job using the same
job ID as an already executing job, JobScheduler may start running the
new job before it has fully stopped the old job and cleaned up state.
This may cause some incorrect behavior within apps that don't properly
handle this possibility. To alleviate that, try to avoid executing the
new job until the old job has finished, and document the behavior as
much as possible.
We still continue to start TOP+EJs immediately so that developers can
operate with that guarantee.
Bug: 231148615
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Test: atest CtsJobSchedulerTestCases
Change-Id: Ieedd7a9b91c350e0b835163fa9a73913d1edd345
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions