28 lines
872 B
Batchfile
28 lines
872 B
Batchfile
@echo off
|
|
REM ============================================================================
|
|
REM Troostwijk Auction Monitor - Run Once (Windows)
|
|
REM ============================================================================
|
|
REM
|
|
REM This script runs the complete workflow once and exits.
|
|
REM Perfect for Windows Task Scheduler.
|
|
REM
|
|
REM Usage:
|
|
REM run-once.bat
|
|
REM
|
|
REM Schedule in Task Scheduler:
|
|
REM - Every 30 minutes: Data import
|
|
REM - Every 1 hour: Image processing
|
|
REM - Every 15 minutes: Bid monitoring
|
|
REM
|
|
REM ============================================================================
|
|
|
|
REM Set configuration
|
|
set DATABASE_FILE=C:\mnt\okcomputer\output\cache.db
|
|
set NOTIFICATION_CONFIG=desktop
|
|
|
|
REM Run the application once
|
|
java -jar target\troostwijk-scraper-1.0-SNAPSHOT-jar-with-dependencies.jar once
|
|
|
|
REM Exit code for Task Scheduler
|
|
exit /b %ERRORLEVEL%
|