Environment Variables

Apply at startup. Restart AnythingLLM to apply changes.

  • SCHEDULED_JOB_MAX_CONCURRENT
    • Description: Maximum concurrent scheduled jobs across the instance.
    • Default: 1
  • SCHEDULED_JOB_TIMEOUT_MS
    • Description: Per-run execution time limit in milliseconds. Overlimit runs are terminated and marked timed out.
    • Default: 300000 (5 minutes)

Example .env

SCHEDULED_JOB_MAX_CONCURRENT=3
SCHEDULED_JOB_TIMEOUT_MS=900000

System Requirements & Constraints

  • Mode: Single-user mode only (disabled/hidden in multi-user mode).
  • Platform: Supported on Docker and Desktop.
  • Host State: Host must be running. Missed runs during downtime or sleep do not retroactively trigger; execution resumes on the next scheduled interval.
  • Overlap Prevention: One execution per job at a time. If a schedule triggers while a previous run of the same job is active/queued, the new run is dropped.
  • Queueing: Runs exceeding SCHEDULED_JOB_MAX_CONCURRENT are queued.
  • History Limit: UI displays the 50 most recent runs per job.
  • File Access: Generated files are accessible only via the Scheduled Jobs UI in single-user mode.

Push Notifications

Requirements

  • Protocol: HTTPS or https://allm.loca.zone (browsers block notifications on insecure origins).
  • Browser: Modern desktop browsers (Chrome, Edge, Firefox, Brave, Safari 16+) with active background processes.

Setup

  1. Navigate to Settings > Scheduled Jobs.
  2. Approve the browser notification permission prompt.

Disable Notifications

Revoke permission via browser site settings:

  • Chrome/Edge/Brave: Click lock icon next to URL -> Site settings -> Set Notifications to Block.
  • Firefox: Click lock icon -> Clear permissions and cookies or block via settings.
  • Safari: Safari > Settings > Websites > Notifications -> Set site to Deny.