Skip to content

[#18] close iRODSFS file handles before interpreter exit.#19

Merged
hechth merged 6 commits intoRECETOX:mainfrom
d-w-moore:18.m
Feb 23, 2026
Merged

[#18] close iRODSFS file handles before interpreter exit.#19
hechth merged 6 commits intoRECETOX:mainfrom
d-w-moore:18.m

Conversation

@d-w-moore
Copy link
Copy Markdown
Collaborator

Allows writes to iRODSFS-generated file handles to be automatically handled at the right time. If happening at interpreter exit due to auto-closing data objects, then make sure these higher-level iRODSFS handles are closed out at the right time -- that is, first thing.

@d-w-moore
Copy link
Copy Markdown
Collaborator Author

d-w-moore commented Aug 23, 2024

This will have a companion branch in my fork of Python iRODS Client, which commit/PR I will link to this discussion once that PR is ready.

@d-w-moore
Copy link
Copy Markdown
Collaborator Author

See accompanying Pull Request at irods/python-irodsclient#611

@d-w-moore d-w-moore marked this pull request as draft August 24, 2024 04:26
@d-w-moore
Copy link
Copy Markdown
Collaborator Author

Converting to draft for the time being...

If available, the irods.at_client_exit.register feature of the
Python iRODS Client is called in an attempt to properly schedule
the auto-closing (and therefore auto-flushing) of content written
to iRODSFS handles before Python interpreter exit.
@d-w-moore
Copy link
Copy Markdown
Collaborator Author

See companion pull request irods/python-irodsclient#616

@hechth hechth linked an issue Feb 23, 2026 that may be closed by this pull request
@hechth hechth marked this pull request as ready for review February 23, 2026 13:52
@hechth hechth merged commit 12f984b into RECETOX:main Feb 23, 2026
1 of 20 checks passed
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

Successfully merging this pull request may close these issues.

pyfilesystem data object descriptors unreliable at flushing/closing

3 participants