# make sure file name is unique across runs by suffixing it with pid + timestamp
suffix = '.' + str(os.getpid()) + '.' + datetime.datetime.utcnow().strftime('%Y%m%d_%H%M%S')
file =  tempfile.NamedTemporaryFile(dir=NeedToGetFromParam, mode='w', delete=false, suffix=suffix)
self.recover_file = file.name