Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating file #108

Open
andrea-cassioli-maersk opened this issue Jul 19, 2021 · 0 comments
Open

Error creating file #108

andrea-cassioli-maersk opened this issue Jul 19, 2021 · 0 comments

Comments

@andrea-cassioli-maersk
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant