AWS Thinkbox Discussion Forums

PostJobScript Status Corrupted

Hi,

I was exploring adding pre/post job scripts and have got them to behave correctly using the below.

RepositoryUtils.SetPostJobScript(jobID, location)

The problem is when all my tasks are completed it says that the job is corrupted. I don’t have any error in the logs and have tried minimising the script contents to essentially do nothing, yet still encounter the same issue. I am adding this in whilst the job is suspended so I assume this may be something to do with it.

Setting post task scripts etc functions fine with no error so I’m not really sure how to troubleshoot.

Thanks for any advice

Sorry for resurrecting this post.
I had the same issue - adding post/pre-job script using the RepositoryUtils.SetPost/PreJobScript() leads to corrupted job(to which the post-job script is added). The solution I use:

RepositoryUtils.SetPostJobScript(jobID, location)
RepositoryUtils.SaveJob(job)
newJob = RepositoryUtils.ResubmitJob( job, frameList, chunkSize, submitSuspended )
RepositoryUtils.DeleteJob(job)
Privacy | Site terms | Cookie preferences