Repository navigation
feat(queue-manager-core): add beforeResume option to Manager - #1538
Open
llawliet-l-l wants to merge 1 commit into
Open
llawliet-l-l wants to merge 1 commit into
llawliet-l-l wants to merge 1 commit into
Conversation
llawliet-l-l
requested review from
RyukTheCoder and
yeager-eren
as code owners
November 3, 2026 10:30
llawliet-l-l
force-pushed
the
feat/RC-505-core-typed-json-task-payload
branch
2 times, most recently
from
November 11, 2026 09:02
bd232c3 to
3956e2c
Compare
Core calls the optional `beforeResume(context, item)` before each queue run, with the live context and a fresh `PersistedQueue` of the queue, then reads the context again so the hook can change it for that run.
llawliet-l-l
force-pushed
the
feat/RC-592-core-before-resume
branch
from
November 11, 2026 09:05
4a5bac4 to
4cc3fc0
Compare
This branch was successfully deployed
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.
Adds an optional
beforeResume(context, item)hook to core'sManager. It is called synchronously right before a queue run starts, so a caller can adjust the context for that run, e.g. to pick the wallet a queue uses when several are connected.Changes
create's run closure,resume(),forceExecute(), and bothsyncpaths.retry()and unblocked queues reach it throughexecute()and those same closures.contextis the value the run is about to get:context.current, or a fresh{}when that is unset. Core reads the context again after the hook, so in-place changes tocurrentapply to that run.Checklist: