Skip to content

[Good First Issue] Build alert delivery worker (email + webhook) #10

Closed

Description

@Oshgig

Overview

Alerts are stored in SQLite but never delivered. NGOs never receive notifications. We need a lightweight background worker to attempt delivery.

Scope

  • Read unacknowledged alerts from the alerts table
  • Attempt email delivery via SMTP (configurable in .env)
  • Attempt webhook delivery via HTTP POST to organization.webhook_url
  • Update delivery status in DB (delivered, failed, pending)
  • Expose retry logic (max 3 attempts with exponential backoff)
  • Add endpoint GET /api/organizations/{org_id}/alerts/pending for monitoring

Acceptance Criteria

  • When an alert is created, the worker attempts delivery within 60 seconds
  • Failed deliveries are retried up to 3 times
  • Delivery status is queryable via API
  • Worker runs as FastAPI BackgroundTasks (no external queue needed for MVP)

Resources

Difficulty: Intermediate
Labels: help wanted, backend, api

Activity

  1. added
    help wanted
    good first issue
    and removed
    help wanted
    on Apr 19, 2026
  2. changed the title [-][Help Wanted] Build alert delivery worker (email + webhook)[/-] [+][Good First Issue] Build alert delivery worker (email + webhook)[/+] on Apr 25, 2026
  3. Presmanes3 commented on May 16, 2026

    @Presmanes3

    Hi, I would like to take care of this task! Could you please assign it to me?

  4. added a commit that references this issue on Jun 26, 2026
    1381104
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

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions