PyTd icon indicating copy to clipboard operation
PyTd copied to clipboard

_Cleanup Logs failing because of race condition on deleting logs

Open clydewatts opened this issue 8 years ago • 0 comments

Hi ,

I am running multiple instances of the a python script simultaneously , and got a race condition on the deleting of old logs. (def _cleanupLogs). This is the first time i have seen this occurrence.

Traceback (most recent call last): File "/home/prod/bin/ftp_downloader.py", line 1044, in sys.exit(run_as_script()) File "/home/prod/bin/ftp_downloader.py", line 1012, in run_as_script options.job_id File "/home/prod/bin/ftp_downloader.py", line 80, in init self.udaExec = teradata.UdaExec(appName='ftp_downloader', version=1) File "build/bdist.linux-x86_64/egg/teradata/udaexec.py", line 123, in init File "build/bdist.linux-x86_64/egg/teradata/udaexec.py", line 250, in _initLogging File "build/bdist.linux-x86_64/egg/teradata/udaexec.py", line 276, in _cleanupLogs OSError: [Errno 2] No such file or directory: 'logs/ftp_downloader.20170706021004-2480.log'

clydewatts avatar Oct 04 '17 07:10 clydewatts