You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR makes four focused, independent changes. All are correct and clean.
1. engine/packages/gasoline/src/db/kv/mod.rs — Skip silenced workflows during poll dispatch
Good. The SilenceTsKey fetch is added inside the existing tokio::try_join! block, so it runs in parallel with all other FDB reads at no extra round-trip cost. The early-return path clears the lease and worker-id key, which mirrors what happens for already-completed workflows — consistent with the pattern at line ~568 in clear_expired_leases.
One minor observation: the warning level (tracing::warn!) for "workflow silenced, ignoring" is the same as "workflow already completed". Since silencing is intentional/expected behavior, tracing::debug! might be more appropriate — but this is a style preference, not a bug.
Good. The removed block was dead code; pools.rs and envoy-client both call install_default() with the same is_err() guard already. The removal is safe.
3. engine/packages/pegboard/src/workflows/actor2/runtime.rs — Clear reschedule_ts on successful allocation
Correct fix.sleep_ts was already being cleared on successful allocation, but reschedule_ts was left stale. compare_retry sets reschedule_ts when retry backoff is active; clearing it on allocation success prevents a spurious reschedule after an actor comes back online. Consistent with the reset path in compare_retry (line 733).
4. engine/packages/pegboard/src/workflows/runner_pool.rs — Capture error tracker WF ID and send Shutdown on exit
Good lifecycle fix. Previously the error tracker sub-workflow would wait indefinitely for signals after the runner pool workflow completed (since it only exits on Shutdown). Sending Shutdown on exit is the correct cleanup.
One note: the Shutdown signal is added after the main loop without a ctx.v(N) version branch at the runner pool level. For in-progress workflow replays that have already exited the loop, this new code will execute on next wake-up, sending an extra Shutdown to the error tracker. That should be safe since the tracker handles it idempotently (returns Ok(true) and breaks). No blocking concern, but worth being aware of during rollout.
Summary: All four changes are correct and targeted. No blocking issues.
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
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.
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: