-
Notifications
You must be signed in to change notification settings - Fork 31
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
named locks #249
Comments
Maybe syntax: task "x" {
check = "..."
apply = "..."
lock = ["name1", "name2"]
} Or should the lock be a global node of some kind? |
for certain tasks (package installs like you mentioned), should it be implicit based on the resource type? we might be able to also speed things up by batching into a single transaction. I kind of asked about this over on the wiki: https://github.com/asteris-llc/converge/wiki/Sample-Elasticsearch-Filebeat-Kibana. Repeating here:
|
I think yes, in the long term we can batch things like that. Package On 13 Sep 2016, at 18:33, Ryan Eschinger wrote:
|
Let's let the implementor worry about exactly how to implement this and change the issues tags around to reflect it's ready. I'd like whoever does this to prefer to store the data in the graph somehow (generated dependencies) if possible. Otherwise, a named mutex probably will work just fine. |
Could we have the lock be a resource type?
|
It would probably have to be inside the task, since the goal is to synchronize across multiple modules. |
now known as "group" - see #392 |
A named lock would be nice for doing things that affect the whole system, but which Converge currently does in parallel. (Like package management using
apk
on Alpine)The text was updated successfully, but these errors were encountered: