← back to Ventura Corridor
launchd/com.steve.ventura-corridor-news-scrape.plist
41 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.ventura-corridor-news-scrape</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-lc</string>
<string>cd /Users/macstudio3/Projects/ventura-corridor && /opt/homebrew/bin/npm run crawl:news</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>3</integer>
<key>Minute</key>
<integer>15</integer>
</dict>
<key>StandardOutPath</key>
<string>/Users/macstudio3/Projects/ventura-corridor/logs/news-scrape.out.log</string>
<key>StandardErrorPath</key>
<string>/Users/macstudio3/Projects/ventura-corridor/logs/news-scrape.err.log</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin</string>
<key>PGHOST</key>
<string>/tmp</string>
<key>NEWS_TIMEOUT_MS</key>
<string>10000</string>
<key>NEWS_HOST_GAP_MS</key>
<string>500</string>
<key>NEWS_CONCURRENCY</key>
<string>4</string>
</dict>
<key>RunAtLoad</key>
<false/>
</dict>
</plist>