Shopify/brigade — pull request #17 by aybabtme (2014-08-08 04:49:31+00:00)
Title: Add a lock on a file to prevent two processes running at the same time.

Take a lock on a file, fail if another process is already locking.

Prevents two jobs of `brigade` to overlaps (if a cron job is not finished yet). This can't occur right now because the http monitoring handler anecdotally served as a hacky lock by binding a socket =3.

r: @camilo