Merge lp://qastaging/~doanac/uci-engine/imgbuild-lock into lp://qastaging/uci-engine

Proposed by Andy Doan
Status: Merged
Approved by: Andy Doan
Approved revision: 676
Merged at revision: 684
Proposed branch: lp://qastaging/~doanac/uci-engine/imgbuild-lock
Merge into: lp://qastaging/uci-engine
Prerequisite: lp://qastaging/~doanac/uci-engine/rabbit-cron
Diff against target: 33 lines (+9/-0)
1 file modified
image-builder/imagebuilder/cloud_image.py (+9/-0)
To merge this branch: bzr merge lp://qastaging/~doanac/uci-engine/imgbuild-lock
Reviewer Review Type Date Requested Status
Paul Larson Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+226913@code.qastaging.launchpad.net

Commit message

provide lock for cloud_image logic

This code was always intended to only allow one instance running
at a time. For the most part rabbit enforces this for us, but this
adds an extra layer of saftey

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:676
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/1084/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/1084/rebuild

review: Approve (continuous-integration)
Revision history for this message
Paul Larson (pwlars) wrote :

As long as we don't ever end up in a stale lock situation, I don't see any harm in this. I don't see any concern with that here though. +1

review: Approve
Revision history for this message
Andy Doan (doanac) wrote :

the good thing about flock is that as soon as the file is closed (ie - the
process dies) the flock gets released by the OS :)

On Thu, Jul 17, 2014 at 9:29 AM, Paul Larson <email address hidden>
wrote:

> Review: Approve
>
> As long as we don't ever end up in a stale lock situation, I don't see any
> harm in this. I don't see any concern with that here though. +1
> --
> https://code.launchpad.net/~doanac/uci-engine/imgbuild-lock/+merge/226913
> You are the owner of lp:~doanac/uci-engine/imgbuild-lock.
>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches