File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1515module load LibTIFF/4.6.0-GCCcore-13.3.0
1616module load R/4.4.2-gfbf-2024a
1717module load cURL/8.7.1-GCCcore-13.3.0
18- module load openssl/1.1.1
18+ module load OpenSSL/3
1919module load Miniconda3/24.7.1-0
2020
21- # Activate conda environment
22- conda activate mosquito-alert-monitor
21+ # Initialize and activate conda environment
22+ source ~ /.bashrc # Ensure conda is initialized
23+ if ! conda activate mosquito-alert-monitor; then
24+ echo " WARNING: Failed to activate conda environment mosquito-alert-monitor"
25+ echo " Continuing with default environment..."
26+ fi
2327
2428# Load SSH agent since this is no longer done by default on the cluster
2529eval " $( ssh-agent -s) "
@@ -94,10 +98,8 @@ $STATUS_SCRIPT "$JOB_NAME" "running" $(($(date +%s) - START_TIME)) 50
9498R CMD BATCH --no-save --no-restore code/get_latest_data.R logs/get_latest_data_$( date +%Y%m%d_%H%M%S) .out
9599
96100if [ $? -eq 0 ]; then
97- $STATUS_SCRIPT " $JOB_NAME " " completed" $(( $(date +% s) - START_TIME)) 100
101+ $STATUS_SCRIPT " weather-hourly " " completed" $(( $(date +% s) - START_TIME)) 100
98102else
99- $STATUS_SCRIPT " $JOB_NAME " " failed" $(( $(date +% s) - START_TIME)) 50
100- fi
101103 $STATUS_SCRIPT " weather-hourly" " failed" $(( $(date +% s) - START_TIME)) 50
102104fi
103105
You can’t perform that action at this time.
0 commit comments