Refactor orchestration and email handling - Updated the orchestration queries to streamline model lookups and added conditions for active models. - Changed the entry point in the local run script to use the worker module. - Removed the deprecated samples.json file. - Enhanced the Email activity to skip sending if the SMTP server is not configured. - Added timestamp field handling in MongoDB activities for better data management. - Updated connectors configuration to allow for a None SMTP server. - Improved the common configuration function to include model configuration details.
19 lines
450 B
Bash
Executable File
19 lines
450 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Exit on any error
|
|
set -e
|
|
|
|
echo "Activating virtual environment..."
|
|
source ./venv/bin/activate
|
|
|
|
echo "Loading environment variables from .env..."
|
|
if [ -f .env ]; then
|
|
export $(cat .env | grep -v '^#' | xargs)
|
|
echo "Environment variables loaded from .env"
|
|
else
|
|
echo "Warning: .env file not found. Continuing without environment variables."
|
|
fi
|
|
|
|
echo "Starting orchestrator application..."
|
|
python -m orchestrator.worker.worker
|