Skip to content

Only shuffle when fork is installed#142

Merged
jasonvarga merged 23 commits into
masterfrom
only-shuffle-when-concurrent
Jul 14, 2023
Merged

Only shuffle when fork is installed#142
jasonvarga merged 23 commits into
masterfrom
only-shuffle-when-concurrent

Conversation

@jesseleite

@jesseleite jesseleite commented Jul 13, 2023

Copy link
Copy Markdown
Contributor

Shuffling is intentional for balancing concurrent worker performance, but a good point was made in #136 (comment) about running non-deterministically and trying to work through page errors while generating a site.

Though we now have #137 to help with this type of workflow, the unpredictability of a shuffle only benefits the user when running concurrently with spatie/fork. This PR ensures the shuffle only happens when spatie/fork is detected.

@jesseleite jesseleite marked this pull request as draft July 13, 2023 21:20
@jasonvarga jasonvarga marked this pull request as ready for review July 14, 2023 13:42
@jasonvarga jasonvarga merged commit 740d414 into master Jul 14, 2023
@jasonvarga jasonvarga deleted the only-shuffle-when-concurrent branch July 14, 2023 13:55
thomaskenne pushed a commit to thomaskenne/ssg that referenced this pull request Feb 10, 2024
Co-authored-by: Simon Hamp <simon.hamp@me.com>
Co-authored-by: Jason Varga <jason@pixelfear.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants