Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Background Poller

When running bbscope serve, a background poller automatically polls all configured platforms on a schedule.

How it works

  1. On startup, the poller runs immediately.
  2. After each cycle, it waits for the configured interval (default: 6 hours).
  3. All platforms are polled concurrently.
  4. After each cycle, the web cache is invalidated so the UI reflects fresh data.

Configuration

Set the interval via flag or environment variable:

# Via flag
bbscope serve --poll-interval 12

# Via environment variable (Docker)
POLL_INTERVAL=12

Monitoring

The /debug endpoint shows the status of each platform’s poller:

  • Last run: When the poller last ran for this platform
  • Duration: How long the poll took
  • Status: Success, failure, or skipped (no credentials configured)

Behavior differences from CLI

AspectCLI (bbscope poll --db)Web (background poller)
Platform orderSequentialConcurrent (all at once)
Change outputPrinted to stdoutLogged to server logs
Credentials sourceConfig fileEnvironment variables
AuthenticationOnce at startupRe-authenticated each cycle
Error handlingReturns first errorLogs errors, continues