Skip to content

Conversation

obelloc
Copy link

@obelloc obelloc commented Aug 4, 2025

When running ssg with multiple workers, different forked processes might check for an existing folder and attempt to create it "simultaneously", which will cause makeDirectory to fail (folder already exists) and ssg to abort.

The fix uses 'force' to ignore errors on makeDirectory(). If it fails with errors other than 'folder already exists', then the following put() should also fail, meaning, it won't go unnoticed.

When running ssg with multiple workers, different forked processes might check
for an existing folder and attempt to create it "simultaneously",
which will cause makeDirectory to fail (folder already exists) and ssg to abort.

The fix uses 'force' to ignore errors on makeDirectory(). If it fails with errors
other than 'folder already exists', then the following put() should also fail,
meaning, it won't go unnoticed.
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.

1 participant