Skip to content

Make notify_user step non-fatal in publish-approve orchestrator #477

Closed

Description

@neuromechanist

Context

Release review of #474 flagged that step 15 (notify_user, Resend email send) is fatal-on-error in backend/src/services/publishOrchestrator.ts. It fires after step 7 (publish_doi), which is irreversible.

A Resend outage between steps 7 and 15 leaves the dataset:

  • Published (visibility flipped, DOI minted, archive generated)
  • But the requesting user never receives the publication confirmation email
  • Operator must manually --resume once Resend recovers

Proposal

Mirror the sync_nemar pattern (also fires after publish_doi, also non-fatal). On failure:

  • Log to D1 audit
  • Continue to step completion
  • Optionally schedule a retry via a daily cron sweep that queues failed notify_user emails

Out of scope

  • Resend retry logic at the SDK level — that's a separate hardening item
  • Per-step retry policies in the orchestrator generally — needs a design pass first

Activity

  1. added
    enhancement
    on May 14, 2026
  2. neuromechanist commented on May 14, 2026

    @neuromechanist
    ContributorAuthor

    Merged via PR #484.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions