Skip to content

API: Payout Scheduling & Recurring Jobs (BullMQ) #73

@0xdevcollins

Description

@0xdevcollins

Summary

Implement payout scheduling (future-dated) and recurring payout configuration using BullMQ.

Requirements

  • scheduledAt field on payout — execute at specified time
  • Recurring payout config: daily, weekly, bi-weekly, monthly
  • BullMQ delayed jobs for scheduled payouts
  • BullMQ repeatable jobs for recurring payouts
  • Batch processing: group pending payouts into batches for efficiency
  • Balance check before execution — fail gracefully if insufficient
  • 2FA confirmation for payouts above configurable threshold

Acceptance Criteria

  • Scheduled payouts execute at correct time (±30s)
  • Recurring payouts generate new payout records on schedule
  • Batch processing groups payouts efficiently
  • Insufficient balance fails with clear error, doesn't debit
  • Payout jobs survive API restart (persisted in Redis)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programbackendBackend API workfeatureNew feature

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions