Skip to content

Commit

Permalink
Update driver scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
henrykironde committed Jan 23, 2024
1 parent 1db0e7a commit 4566d4b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
5 changes: 0 additions & 5 deletions archive_hipergator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ git config user.name "Weecology Deploy Bot"

# Commit changes to portal-forecasts repo
git checkout main

# zip forecasts files by data
echo "INFO [$(date "+%Y-%m-%d %H:%M:%S")] zipping forecasts files"
Rscript setup_forecasts_files.R zip

git add data/* models/* forecasts/* portal_weekly_forecast.sh portal_dryrun_forecast.sh
git commit -m "Update forecasts: HiperGator Build $current_date [ci skip]"

Expand Down
8 changes: 4 additions & 4 deletions portal_dryrun_forecast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#SBATCH --mail-user=portal-forecasts-aaaaamelbeyabgcqol6s4p4cja@weecology.slack.com
#SBATCH --mail-type=FAIL
#SBATCH --ntasks=1
#SBATCH --mem=2gb
#SBATCH --mem=16gb
#SBATCH --time=12:00:00
#SBATCH --partition=hpg2-compute
#SBATCH --output=portal_dryrun_forecast_log.out
#SBATCH --error=portal_dryrun_forecast_log.err
#SBATCH --output=/orange/ewhite/PortalForecasts/portal_dryrun_forecast_log.out
#SBATCH --error=/orange/ewhite/PortalForecasts/portal_dryrun_forecast_log.err

echo "INFO: [$(date "+%Y-%m-%d %H:%M:%S")] Starting Weekly Forecast on $(hostname) in $(pwd)"

Expand All @@ -24,7 +24,7 @@ git clone https://github.com/weecology/portal-forecasts.git
cd portal-forecasts

echo "INFO [$(date "+%Y-%m-%d %H:%M:%S")] Running Portal Forecasts"
singularity run ../portalcasting_latest.sif Rscript PortalForecasts_dryrun.R
singularity run ../portalcasting_latest.sif Rscript PortalForecasts_dryrun.R 2>&1 || exit 1

echo "INFO [$(date "+%Y-%m-%d %H:%M:%S")] Checking if forecasts were successful"
# Redirect stderr(2) to stdout(1) if command fails, and exit script with 1
Expand Down
8 changes: 4 additions & 4 deletions portal_weekly_forecast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#SBATCH --mail-user=portal-forecasts-aaaaamelbeyabgcqol6s4p4cja@weecology.slack.com
#SBATCH --mail-type=FAIL
#SBATCH --ntasks=1
#SBATCH --mem=2gb
#SBATCH --mem=16gb
#SBATCH --time=12:00:00
#SBATCH --partition=hpg2-compute
#SBATCH --output=portal_weekly_forecast_log.out
#SBATCH --error=portal_weekly_forecast_log.err
#SBATCH --output=/orange/ewhite/PortalForecasts/portal_weekly_forecast_log.out
#SBATCH --error=/orange/ewhite/PortalForecasts/portal_weekly_forecast_log.err

echo "INFO: [$(date "+%Y-%m-%d %H:%M:%S")] Starting Weekly Forecast on $(hostname) in $(pwd)"

Expand All @@ -24,7 +24,7 @@ git clone https://github.com/weecology/portal-forecasts.git
cd portal-forecasts

echo "INFO [$(date "+%Y-%m-%d %H:%M:%S")] Running Portal Forecasts"
singularity run ../portalcasting_latest.sif Rscript PortalForecasts.R
singularity run ../portalcasting_latest.sif Rscript PortalForecasts.R 2>&1 || exit 1

echo "INFO [$(date "+%Y-%m-%d %H:%M:%S")] Checking if forecasts were successful"
# Redirect stderr(2) to stdout(1) if command fails, and exit script with 1
Expand Down

0 comments on commit 4566d4b

Please sign in to comment.