← back to Dw Scrape Scheduler

launchd/com.steve.dw-scrape-dispatcher.plist

27 lines

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"><dict>
  <key>Label</key><string>com.steve.dw-scrape-dispatcher</string>
  <key>ProgramArguments</key>
    <array>
      <string>/bin/bash</string>
      <string>/Users/macstudio3/Projects/dw-scrape-scheduler/scripts/dispatch-run.sh</string>
    </array>
  <key>WorkingDirectory</key><string>/Users/macstudio3/Projects/dw-scrape-scheduler</string>
  <!-- DAILY at 04:15; the dispatcher self-selects vendors whose day-of-month == today,
       so the fleet is spread across the month (1-2 vendors on any given day). -->
  <key>StartCalendarInterval</key>
    <dict>
      <key>Hour</key><integer>4</integer>
      <key>Minute</key><integer>15</integer>
    </dict>
  <key>RunAtLoad</key><false/>
  <key>StandardOutPath</key><string>/tmp/dw-scrape-dispatcher.log</string>
  <key>StandardErrorPath</key><string>/tmp/dw-scrape-dispatcher.log</string>
  <key>EnvironmentVariables</key>
    <dict>
      <key>PATH</key><string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
      <key>HOME</key><string>/Users/macstudio3</string>
    </dict>
</dict></plist>