You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My rather large site has a bunch of checks before being deployed: spell checker, link checker, assets checker, HTML validator, and several more which makes "nanoc check" a pretty long step in my workflow, much longer than the compile step most of the time.
I'd like to submit a feature request to run the checks in parallel, because they seem like a perfect candidate for it. I took a quick look at the code and I think it should be relatively easy since none of the checks changes any state. It would just need some work to use a thread-safe object for the error collection and the output of the check command would need rethinking to prevent it being interleaved. For example, checks could print a single dot to show they're doing something, (or if we want to do it really nice we could make each thread report a progress percentage to the parent).
The text was updated successfully, but these errors were encountered:
I'm using this patch in Checks.rb that does little more than adjust the loop to run each check in a separate thread, and a few formatting fixes. It works great.
(edited to use parallel gem, because some parts of the check runner are not thread safe. This required me to replace class in the Issue with a Struct to allow it to serialize)
@Fjan said:
The text was updated successfully, but these errors were encountered: