Skip to content

Test: verify earnings collection scheduler and startup trigger #9

Closed

Description

@GeiserX

Context

CashPilot collects earnings on a configurable interval (default: 3600s) using APScheduler, and also triggers a collection run immediately on container startup.

Task

  1. Verify the scheduler is configured with the correct interval from CASHPILOT_COLLECTION_INTERVAL
  2. Verify the startup trigger fires a collection run
  3. Verify collection results are stored in the database
  4. Mock collector HTTP calls to avoid hitting real APIs

Reference

  • app/main.py — scheduler setup, startup collection
  • app/collectors/ — collector implementations
  • app/database.py — earnings storage
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 issueGood for newcomerspinnedExempt from stale bot auto-close

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions