Replies: 1 comment
-
The locking is currently needed because automatic translation is likely to trigger commit, and that one needs locking. So better to acquire lock before the operation than fail on it during it in a deadlock. Once #8770 is implemented, this will no longer be an issue and the component lock can probably be avoided in this situation as described in #13623. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm experiencing component-level locking that prevents multiple languages from running autotranslation simultaneously within the same component. I'd like to confirm if this is the intended behavior and understand the technical rationale behind it.
Current Behavior
When running autotranslation (using machine translation services like Azure OpenAI or AWS Claude) on a large component (~56,000 strings), I observe:
Environment Details
Technical Investigation
Through Django shell investigation, I confirmed:
lock:component-update-lock-295
)celery_queues
returns 0 for all queues)Questions for Maintainers
Is this the intended behavior? Should autotranslation be serialized per component?
What's the technical rationale? Is this due to:
Is this related to Issue Support translation to multiple languages in parallel #197? While that issue discusses manual multi-language editing, this concerns automated translation concurrency.
Are there any plans to support concurrent autotranslation? For large components, serialized translation significantly increases processing time.
Use Case
We have several large components where:
Potential Solutions (if this is a limitation)
Request
Could the maintainers confirm:
Thank you for maintaining this excellent translation platform!
Beta Was this translation helpful? Give feedback.
All reactions