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

_______________________________________________
Mailing list: https://launchpad.net/~linaro-release
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~linaro-release
More help   : https://help.launchpad.net/ListHelp

Reply via email to