Skip to content

Async job hooks - #670

Merged
azahnen merged 3 commits into
masterfrom
async-job-hooks
Oct 23, 2026
Merged

azahnen merged 3 commits into
masterfrom
async-job-hooks

Conversation

@azahnen

@azahnen azahnen commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

cportele and others added 3 commits October 14, 2026 12:39
Queries can carry a JobHook that execution code reports progress to
and polls for cooperative cancellation; the default NOOP hook leaves
the pipeline unchanged.

- JobHook (init/update/isCancelRequested/checkpoint) and
  JobCancelledException in the features domain
- Query.getJobHook(), default NOOP, auxiliary
- FeatureTokenTransformerProgress: init from numberReturned when
  available, one update per feature, per-feature cancellation
  checkpoint; inserted into the pipeline only when a hook is attached
- SqlQueryBatch / FeatureQueryEncoderSql: the hook travels with the
  encoded query batch
- SqlConnector: unpaged single-shot queries report one unit per
  completed sub-query (weak counter, no meta phase)
- specs: JobHookSpec, FeatureTokenTransformerProgressSpec
@azahnen
azahnen merged commit 25ad0e2 into master Oct 23, 2026
3 checks passed
@azahnen
azahnen deleted the async-job-hooks branch October 23, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants