I am implementing a liveness based on a file timestamp, using a simple code as follow
async with aiofiles.open(liveness_file_path, 'w'):
pass
I am only interested in the existence of the file, so I am not going to write any data on it. This happens every minutes, but once every now and then I get
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/liveness'
The file and folder is always the same, and that file is not used for any other purpose. So I am a bit puzzled on why this happen. Any clue?
I am implementing a liveness based on a file timestamp, using a simple code as follow
I am only interested in the existence of the file, so I am not going to write any data on it. This happens every minutes, but once every now and then I get
The file and folder is always the same, and that file is not used for any other purpose. So I am a bit puzzled on why this happen. Any clue?