Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Queue kinds #17
This PR adds queue kinds:
This is the last major feature I think we need before a 0.1 release (though there are a few minor bits that probably need doing).
For any given repository R, snare previously ran all requests in parallel if possible. This commit allows jobs to be run in parallel or sequentially (with the latter being the default). "Sequentially" means "only run one job per repository at a time": other jobs will be left on the queue and popped in FIFO order when one has finished.
This is useful for things like website building, where there's no point having a long list of jobs on the queue: only the most recent job is worth executing. Note that 'evict' only removes jobs from the queue: it does not affect running jobs.
17: Queue kinds r=vext01 a=ltratt This PR adds queue kinds: `queue = <evict|parallel|sequential>`. Previously `parallel` was all we supported, which had some comic outcomes: for example, for yksom, you could get race conditions trying to force push the `gh-pages` branch. `sequential` is now the default. Hopefully the README explains why these exist and why they might be useful. This is the last major feature I think we need before a 0.1 release (though there are a few minor bits that probably need doing). Co-authored-by: Laurence Tratt <email@example.com>