macmillanpublishers / bookmaker

Macmillan's Bookmaker tool
ISC License
27 stars 2 forks source link

Singlerun lock #216

Closed mattretzer closed 5 years ago

mattretzer commented 5 years ago

1 of a set of 5 PR's to handle concurrent bookmaker runs, both with the tmpdir & the done_dir. Straightforward unless a 'locked' done dir for the exact same ISBN exists, then it retries every minute for 15 minutes, then spawns a new done_dir with an error.txt in the root. Repos affected: bookmaker bookmaker_addons (https://github.com/macmillanpublishers/bookmaker_addons/pull/203) bookmaker_connectors pitstop_watch covermaker

mattretzer commented 5 years ago

Tested run with all inputs, simultaneous runs, egalley, etc; reviewed code. Merging!