Reclaim ownership of job's working dir prior to reading stdout/stderr/ec files to avoid permissions problems.

This commit is contained in:
Nate Coraor
2012-08-14 15:22:29 -04:00
parent b2a5996a6c
commit a3c1064c8f
+2
View File
@@ -339,6 +339,8 @@ class DRMAAJobRunner( BaseJobRunner ):
# By default, the exit code is 0, which typically indicates success.
exit_code = 0
exit_code_str = "0"
# To ensure that files below are readable, ownership must be reclaimed first
drm_job_state.job_wrapper.reclaim_ownership()
while which_try < (self.app.config.retry_job_output_collection + 1):
try:
ofh = file(ofile, "r")