StockDocs/embedding/test_cron_setup.sh
Jarian Cottingham 56231fa354 feat: Implement automated cron job setup for embedding pipeline and clean up AI processor fact extraction logic
• Created automated setup_embedding_cron_auto.sh script that fully configures cron jobs without manual intervention

• Enhanced embedding pipeline logging and error handling

• Simplified AI processor to focus on core fact extraction functionality

• Added proper logging to all scripts for better monitoring
2026-02-01 20:39:07 -06:00

32 lines
882 B
Bash
Executable File

#!/bin/bash
# Test script to verify the automated cron setup works correctly
echo "Testing automated cron setup..."
# Check if the automated setup script exists
if [ ! -f "setup_embedding_cron_auto.sh" ]; then
echo "Error: setup_embedding_cron_auto.sh not found"
exit 1
fi
echo "✓ Automated setup script exists"
# Make it executable
chmod +x setup_embedding_cron_auto.sh
echo "✓ Made script executable"
# Check if crontab is available
if ! command -v crontab &> /dev/null; then
echo "Error: crontab is not available"
exit 1
fi
echo "✓ crontab is available"
# Show current crontab (should be empty or minimal)
echo "Current crontab entries:"
crontab -l 2>/dev/null || echo "No crontab entries found"
echo "Test completed successfully!"
echo "Run 'chmod +x setup_embedding_cron_auto.sh && ./setup_embedding_cron_auto.sh' to actually set up the cron job"