apps:
  # =====================================
  # Default queue → DATABASE
  # =====================================
  - name: suqna-queue-default
    script: artisan
    interpreter: php
    exec_mode: fork
    instances: 1
    args:
      - queue:work
      - database
      - --queue=Default
      - --sleep=3
      - --tries=2
      - --timeout=120
      - --max-jobs=500
      - --max-time=3600
      - --memory=256
    autorestart: true
    restart_delay: 5000
    max_restarts: 10
    
  # =====================================
  # Schedule → REDIS ONLY
  # =====================================
  - name: suqna-schedule
    script: artisan
    args: schedule:work
    exec_mode: fork
    interpreter: php
    watch: false

