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

Fixes #9452: Quality assistant should lock its git local repo access #238

Conversation

peckpeck
Copy link
Member

@peckpeck
Copy link
Member Author

Commit modified

@peckpeck peckpeck force-pushed the ust_9452/quality_assistant_should_lock_its_git_local_repo_access branch from bdd6851 to e8b6fce Compare October 26, 2016 13:15
@peckpeck
Copy link
Member Author

Commit modified

@peckpeck peckpeck force-pushed the ust_9452/quality_assistant_should_lock_its_git_local_repo_access branch from e8b6fce to 08038e2 Compare October 26, 2016 13:16
wait = Config.LOCK_TIMEOUT
while wait > 0:
if os.path.isfile(lockfile):
print("Lock present, waiting " + str(wait) + "s")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should compute w before and state that you are "waiting for "+ str(w) +"s"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(or always wait 5 seconds)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @peck

@peckpeck
Copy link
Member Author

Commit modified

@peckpeck peckpeck force-pushed the ust_9452/quality_assistant_should_lock_its_git_local_repo_access branch from 08038e2 to 44a77bc Compare November 14, 2016 10:32
@Normation-Quality-Assistant

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 44a77bc into Normation:master Nov 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants