Improve algorithm to retrieve outputs and logs from temporary or permanent storage.
Merge pull request #4396 from AndresTanasijczuk/getoutput_getlog

Improve algorithm to retrieve outputs and logs from temporary or permane...