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

[question] can I add metadata to the lockfile? #118

Open
fersarr opened this issue Dec 11, 2024 · 2 comments
Open

[question] can I add metadata to the lockfile? #118

fersarr opened this issue Dec 11, 2024 · 2 comments

Comments

@fersarr
Copy link

fersarr commented Dec 11, 2024

Hi and thanks for this package! This is more of a question, not an issue. Is it possible to add metadata (like hostname, PID, etc.) to the lockfile? Do i Just write it like a normal file if so or is there a correct mechanism? Thank you

@psarka
Copy link
Collaborator

psarka commented Dec 12, 2024

Hi! No, there is no mechanism to add metadata to the lockfile. If you mean the file used by interprocess lock, then probably you can try to write to it, but I would not be surprised if something went wrong.

Maybe you can try to make a wrapper, that saves the metadata in some companion file 🤔

@fersarr
Copy link
Author

fersarr commented Dec 12, 2024

Thanks for answering! Yeah I will probably have a companion file.

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

2 participants