Skip to content

feat: alert delivery worker with email/webhook support (#62, rebased)#105

Merged
obielin merged 4 commits into
mainfrom
merge/pr-62
Jun 26, 2026
Merged

feat: alert delivery worker with email/webhook support (#62, rebased)#105
obielin merged 4 commits into
mainfrom
merge/pr-62

Conversation

@obielin

@obielin obielin commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Rebased + conflict-resolved version of #62 (algojogacor) onto current main.

  • Resolved conflicts in .env.example (kept main's config, appended SMTP/alert vars) and main.py (kept all imports).
  • Contributor authorship preserved; no bot/AI co-author trailers.

Supersedes #62.

Francis Umo and others added 4 commits June 26, 2026 16:05
Defines responsibilities, deliverables, and collaboration guidelines for the Carbon Analytics & Validation role.

Co-Authored-By: Francis Umo <francis.umo@climatevision.org>
Defines responsibilities, deliverables, and collaboration guidelines for the API Development & Integration role.

Co-Authored-By: Olufemi Taiwo <olufemi.taiwo@climatevision.org>
- Add DONE/PENDING task list for April 2026 sprint
- Include actual .github/workflows/ci.yml code in role doc
- Update local CI check commands to match current workflow
- Add AlertDeliveryWorker background task with FastAPI lifespan integration
- Implement email delivery via SMTP with TLS support
- Implement webhook delivery via HTTP POST
- Add exponential backoff retry logic (max 3 attempts)
- Add DB functions: get_pending_alerts, increment_delivery_attempt, mark_alert_failed
- Add GET /api/organizations/{org_id}/alerts/pending endpoint
- Update .env.example with SMTP and worker configuration

Closes #10
@obielin
obielin requested a review from Goldokpa as a code owner June 26, 2026 15:09
@obielin
obielin merged commit e0dc287 into main Jun 26, 2026
4 checks passed
Goldokpa pushed a commit that referenced this pull request Jun 26, 2026
feat: alert delivery worker with email/webhook support (#62, rebased)
@Goldokpa
Goldokpa deleted the merge/pr-62 branch June 26, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants