Imports now work on several parts of a document at once, so a large project is ready sooner. A background job that reprocesses spec books also stops retrying forever when a book is large.
Layr splits each uploaded PDF into batches of pages. Since 0.15.0 production worked on one batch at a time while we fixed what broke under load. It now works on up to four at once, so large plan sets and spec books take less time to become ready. On dev, a three-document project of 2,421 pages went from queued to ready in under four minutes with four at once.
A background job reads a document's pages again to refresh its page names and structure. On a spec book with more than about a thousand pages, that job failed on every try and was retried without limit. The document showed as still processing, and it could not be reprocessed while the job was running. Two books on dev were retried more than 10,000 times each. The job now reads pages in small batches, so large books go through. If it still fails, it stops after a fixed number of tries and records why.
IMPORT_RANGE_WORKERS key in the Modal layr-pipeline secret on layr-main, set just before this release merged so the release deploy picks it up. Dev already runs at 4.IMPORT_RANGE_WORKERS back to 1 in that secret and redeploy layr-pipeline on layr-main. No code change is needed.