Let a nav-data download survive leaving the app - #40
Merged
Conversation
RISCfuture
force-pushed
the
navdata/continued-processing
branch
from
September 8, 2026 07:17
88212f8 to
07da8df
Compare
RISCfuture
force-pushed
the
navdata/continued-processing
branch
2 times, most recently
from
September 8, 2026 08:02
4c14f0a to
f71ad51
Compare
RISCfuture
force-pushed
the
navdata/continued-processing
branch
from
September 8, 2026 08:03
f71ad51 to
ee87aeb
Compare
RISCfuture
force-pushed
the
navdata/continued-processing
branch
2 times, most recently
from
September 8, 2026 16:13
3aba65d to
b8211f3
Compare
RISCfuture
force-pushed
the
navdata/continued-processing
branch
from
September 8, 2026 16:19
b8211f3 to
bbb4fb6
Compare
RISCfuture
force-pushed
the
navdata/continued-processing
branch
from
September 8, 2026 16:26
bbb4fb6 to
ea5da2c
Compare
RISCfuture
force-pushed
the
navdata/continued-processing
branch
from
September 8, 2026 16:33
ea5da2c to
68caa82
Compare
RISCfuture
force-pushed
the
navdata/continued-processing
branch
2 times, most recently
from
September 8, 2026 17:10
29d6f32 to
f8e38bb
Compare
RISCfuture
force-pushed
the
navdata/continued-processing
branch
from
September 8, 2026 18:09
f8e38bb to
3dbc098
Compare
The consent screen asked the pilot to leave the app open until the import finished, because a plain Task gets seconds of runtime once the app is backgrounded and the transfer would restart from nothing next launch. A BGContinuedProcessingTask buys that time, and gives the system a progress and cancel affordance the app does not have to draw. This was blocked, and is not any more. The system expires these tasks as conditions change, and cancels them outright when the app is swiped out of the switcher, without telling the app. Against an import that emptied the live dataset before writing its replacement, that meant an empty airport database — the state the app cannot work from. An import now writes a generation nothing is reading, so a cancelled one costs a file that the next launch reclaims. The task is an enhancement, not a dependency: if the system will not start one, the import runs exactly as it did before. The request asks to start now or not at all rather than queue, because an import would rather run unprotected than wait to begin. One fixed identifier is registered and submitted, advertised verbatim in BGTaskSchedulerPermittedIdentifiers. A wildcard entry there permits the concrete identifiers beneath it, but the wildcard itself is not one the scheduler will register a handler for; since a handler has to be registered while launching, the identifier it answers for has to be known by then, and naming each submission after its own import is not open to us. No UIBackgroundModes entry is involved; that belongs to app refresh, and the comment claiming otherwise was describing BGProcessingTask, a different API for unattended work that is still its own piece of work. Progress is reported because it is required, not merely useful: a task the system reads as stalled is expired to reclaim its resources. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01471376Uhug2TYZN8RDFGtq
RISCfuture
force-pushed
the
navdata/continued-processing
branch
from
September 9, 2026 06:39
3dbc098 to
00084af
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The consent screen asked the pilot to leave the app open until the import
finished, because a plain Task gets seconds of runtime once the app is
backgrounded and the transfer would restart from nothing next launch. A
BGContinuedProcessingTask buys that time, and gives the system a progress
and cancel affordance the app does not have to draw.
This was blocked, and is not any more. The system expires these tasks as
conditions change, and cancels them outright when the app is swiped out
of the switcher, without telling the app. Against an import that emptied
the live dataset before writing its replacement, that meant an empty
airport database — the state the app cannot work from. An import now
writes a generation nothing is reading, so a cancelled one costs a file
that the next launch reclaims.
The task is an enhancement, not a dependency: if the system will not
start one, the import runs exactly as it did before. The request asks to
start now or not at all rather than queue, because an import would rather
run unprotected than wait to begin.
The identifier is a wildcard prefix, which is how continued-processing
requests are permitted — the prefix is registered and each submission
names itself beneath it. No UIBackgroundModes entry is involved; that
belongs to app refresh, and the comment claiming otherwise was describing
BGProcessingTask, a different API for unattended work that is still its
own piece of work.
Progress is reported because it is required, not merely useful: a task
the system reads as stalled is expired to reclaim its resources.
Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01471376Uhug2TYZN8RDFGtq
Stack created with GitHub Stacks CLI • Give Feedback 💬
🤖 Generated with Claude Code
https://claude.ai/code/session_01471376Uhug2TYZN8RDFGtq