-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#925: Verdi infrastructure for submit_pending_jobs worker
- Loading branch information
1 parent
094bab1
commit 3de4de7
Showing
6 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
echo "args: $*" | ||
|
||
BASE_PATH=$(dirname "${BASH_SOURCE}") | ||
BASE_PATH=$(cd "${BASE_PATH}"; pwd) | ||
|
||
# source PGE env | ||
export OPERA_HOME=/home/ops/verdi/ops/opera-pcm | ||
export PYTHONPATH=$BASE_PATH:$OPERA_HOME:$PYTHONPATH | ||
export PATH=$BASE_PATH:$PATH | ||
export PYTHONDONTWRITEBYTECODE=1 | ||
export LD_LIBRARY_PATH=/opt/conda/lib:$LD_LIBRARY_PATH | ||
|
||
source $HOME/verdi/bin/activate | ||
|
||
echo "##########################################" | ||
echo "Running job to submit pending jobs that are ready to be run" | ||
date | ||
|
||
python $OPERA_HOME/data_subscriber/submit_pending_jobs.py $* > run_submit_pending_jobs.log 2>&1 | ||
|
||
if [ $? -eq 0 ]; then | ||
echo "Finished running job" | ||
date | ||
exit 0 | ||
else | ||
echo "Failed to run submit_pending_jobs.py" | ||
date | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"label": "Evaluate and submit pending jobs", | ||
"submission_type":"individual", | ||
"allowed_accounts": [ "ops" ], | ||
"params": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"command":"/home/ops/verdi/ops/opera-pcm/data_subscriber/submit_pending_jobs.sh", | ||
"disk_usage":"1GB", | ||
"soft_time_limit": 1800, | ||
"time_limit": 1860, | ||
"imported_worker_files": { | ||
"$HOME/.netrc": "/home/ops/.netrc", | ||
"$HOME/.aws": "/home/ops/.aws", | ||
"$HOME/verdi/etc/settings.yaml": "/home/ops/verdi/ops/opera-pcm/conf/settings.yaml" | ||
}, | ||
"recommended-queues": [ "opera-job_worker-submit_pending_jobs" ], | ||
"post": [ "hysds.triage.triage" ], | ||
"params": [] | ||
} |