Skip to content

Reduce email retry counts; handle known unretriable emails - #8905

Merged
jdolle merged 3 commits into
mainfrom
email-task-retries
Nov 11, 2026
Merged

jdolle merged 3 commits into
mainfrom
email-task-retries

Conversation

@jdolle

@jdolle jdolle commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Background

Email jobs run with graphile-worker's default budget of 25 attempts, spread over days on the exponential backoff. The links in these emails (invitations, ownership transfers, audit log exports, verification and password reset) expire within hours, so most of that budget can only produce late duplicates. Worse, an invalid or inactive recipient will be retried all 25 times. This fills the delivery log with identical failure rows and the invitations table kept saying "Hive will try again" for an address that would never accept the email.

Description

Lowers the email retry budget to 5 and stops retrying refusals that cannot change.

Checklist

  • Error handling and logging
  • Testing

@jdolle jdolle self-assigned this Nov 10, 2026
@theguild-bot

theguild-bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-hive/apollo 0.48.12-alpha-20261111064539-9a0239950cc9fcac2fcfb709a4d9f3a17f90663e npm ↗︎ unpkg ↗︎
@graphql-hive/cli 0.68.4-alpha-20261111064539-9a0239950cc9fcac2fcfb709a4d9f3a17f90663e npm ↗︎ unpkg ↗︎
@graphql-hive/core 0.24.0-alpha-20261111064539-9a0239950cc9fcac2fcfb709a4d9f3a17f90663e npm ↗︎ unpkg ↗︎
@graphql-hive/envelop 0.40.17-alpha-20261111064539-9a0239950cc9fcac2fcfb709a4d9f3a17f90663e npm ↗︎ unpkg ↗︎
@graphql-hive/gateway-plugin-console-sdk 0.1.11-alpha-20261111064539-9a0239950cc9fcac2fcfb709a4d9f3a17f90663e npm ↗︎ unpkg ↗︎
@graphql-hive/yoga 0.50.1-alpha-20261111064539-9a0239950cc9fcac2fcfb709a4d9f3a17f90663e npm ↗︎ unpkg ↗︎
hive 15.2.0-alpha-20261111064539-9a0239950cc9fcac2fcfb709a4d9f3a17f90663e npm ↗︎ unpkg ↗︎

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🐋 This PR was built and pushed to the following Docker images:

Targets: build

Platforms: linux/amd64

Image Tags: 15.2.0-alpha-9a02399, 9a02399, 9a0239950cc9fcac2fcfb709a4d9f3a17f90663e

@jdolle
jdolle enabled auto-merge (squash) November 11, 2026 06:45
@jdolle
jdolle merged commit 273113d into main Nov 11, 2026
30 checks passed
@jdolle
jdolle deleted the email-task-retries branch November 11, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants