-
Notifications
You must be signed in to change notification settings - Fork 12
Check workdir and input files before job submission (SOFTWARE-3154) #69
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -768,8 +768,10 @@ function bls_finish_job_wrapper () | |
| fi | ||
| } | ||
|
|
||
| function bls_test_working_dir () | ||
| function bls_test_input_files () | ||
| { | ||
| # Verify the workdir can be accessed before submitting the job. If a bogus workdir is | ||
| # given, the job is hopeless | ||
| if [ "x$bls_opt_workdir" != "x" ]; then | ||
| cd $bls_opt_workdir | ||
| elif [ "x$blah_set_default_workdir_to_home" == "xyes" ]; then | ||
|
|
@@ -782,13 +784,22 @@ function bls_test_working_dir () | |
| rm -f $bls_tmp_file | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Ensure local files actually exist. When called before job submission, this prevents | ||
| # unnecessary churn on the scheduler if the files don't exist. | ||
| if ! bls_fl_test_exists inputsand ; then | ||
| echo "Input sandbox file doesn't exist: $bls_fl_test_exists_result" >&2 | ||
| echo Error # for the sake of waiting fgets in blahpd | ||
| rm -f "$bls_tmp_file" | ||
| exit 1 | ||
| fi | ||
| } | ||
|
|
||
| function bls_add_job_wrapper () | ||
| { | ||
| bls_test_input_files | ||
| bls_start_job_wrapper >> $bls_tmp_file | ||
| bls_finish_job_wrapper >> $bls_tmp_file | ||
| bls_test_working_dir | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that previously,
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See the description of the PR: But yes, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess my main question and point (which i did not find the answer to in the PR description) are:
Because:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, then it makes sense as-is. |
||
| } | ||
|
|
||
| function bls_set_up_local_and_extra_args () | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, this
bls_fl_test_exists inputsandcheck was only inslurm_submit.sh.Just to confirm: is it intentional that now we will do this check in the other submit scripts also? (
{blah,lsf,pbs,sge}_submit.sh)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, we want to apply these checks across all batch system submissions