Skip to content

feat(taskworker): read a deadline restore mode once per task - #132062

Draft
ldelvoye wants to merge 1 commit into
masterfrom
ldelvoye/feat/deadline-restore-switch
Draft

ldelvoye wants to merge 1 commit into
masterfrom
ldelvoye/feat/deadline-restore-switch

Conversation

@ldelvoye

Copy link
Copy Markdown
Member

INFRENG-1035, part 1 of 3

Adds the switch for the deadline restore rule: an option (off, report, enforce, shipping off) that a task hook reads once as each task starts and keeps in the process. Nothing reads it yet, so this changes no behaviour.

It is read up front because the rule that uses it runs while a transaction block is ending, where an option read can fall through to a query on a connection that may be broken.

Nothing reads the mode yet. It is held in the process so that the rule
which will use it never reads an option while a transaction block is
ending on a connection that may be broken.
@ldelvoye
ldelvoye added this pull request to stack #132065 November 20, 2026 21:07
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 20, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant