← Back to team overview

linaro-release team mailing list archive

[Bug 892042] Re: Use a lock to prevent multiple instances of update-committed-patches.py running at the same time

 

Perhaps something as simple as the lock in work-items-tracker might
work?

    lock_path = opts.database + ".lock"
    lock_f = open(lock_path, "wb")
    if report_tools.lock_file(lock_f) is None:
        print "Another instance is already running"
        sys.exit(0)

[snip]

    os.unlink(lock_path)

-- 
You received this bug notification because you are a member of linaro-
infrastructure-drivers, which is the registrant for Linaro patch
metrics.
https://bugs.launchpad.net/bugs/892042

Title:
  Use a lock to prevent multiple instances of update-committed-
  patches.py running at the same time

Status in Linaro patch metrics:
  Triaged

Bug description:
  That is a long running process and we don't want two instances of it
  running at the same time, so we should use a lock to prevent that.

To manage notifications about this bug go to:
https://bugs.launchpad.net/linaro-patchmetrics/+bug/892042/+subscriptions


Follow ups

References