Resume held replication results on application readiness

Trigger queued result processing on Commonlib readiness while preserving
explicit suspension. Cover both transitions with focused tests.
This commit is contained in:
Kim Jansheden
2026-09-29 19:39:20 +02:00
parent b3208f2aaf
commit de2ebaeea5
5 changed files with 66 additions and 1 deletions
@@ -108,8 +108,15 @@ export class ReplicateResultProcessor {
}
public resume() {
this._suspended = false;
this.continueHeldDocuments();
}
/**
* Continue the queued documents which were held, for example while the application was not ready.
* An explicit suspension, by `suspend()` or by the settings, remains in effect.
*/
public continueHeldDocuments() {
this.updateProcessingActivity();
fireAndForget(() => this.runProcessQueue());
this.triggerProcessQueue();
}
// Whether the processing is suspended