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

FR: Python api to do locking #23

Open
pgagne opened this issue Aug 18, 2022 · 0 comments
Open

FR: Python api to do locking #23

pgagne opened this issue Aug 18, 2022 · 0 comments

Comments

@pgagne
Copy link

pgagne commented Aug 18, 2022

With the current design it seems like most of the "locking" logic is built into the main() method.

It would be nice to be able to import this tool and call a method with paramters in order to do locking.

Most of our workflows are defined in python code, and so rather then having to shell out to something it would be better to call a method directly that handling the locking/checking/releasing.

Perhaps this could be down in such a way to use things like context managers and/or async/await

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