Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --tmp-dir with os.getpid to each m4b-tool invocation #195

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

psychomario
Copy link

In bragibooks when using multiple celery workers and importing multiple books at the same time, all calls to m4b-merge (and therefore m4b-tool) use the same directory in /tmp (/tmp/m4b-tool). It seems these multiple processes were getting confused with what was going on, overwriting eachother's files, and failing to successfully finish.

There were various errors around failing to get the length of the m4b files (I didn't make a note of the specific error).

Test configuration: bragibooks in Docker, 8 celery workers
Before this change I imported 45 books and had ~37 failures.
I'm half way through re-importing but so far I've had 0 failures

@psychomario psychomario changed the title Add --tmp-dir with os.pid to each m4b-tool invocation Add --tmp-dir with os.getpid to each m4b-tool invocation Sep 21, 2023
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.

None yet

1 participant