apertium / apertium-apy

📦 Apertium HTTP Server in Python
https://wiki.apertium.org/wiki/Apertium-apy
GNU General Public License v3.0
32 stars 42 forks source link

Document translation limits #40

Closed sushain97 closed 7 years ago

sushain97 commented 7 years ago

@unhammer:

We might want to have some locks or a similar method of ensuring we don't start more than N processes at a time (not likely to happen in normal usage, more to protect against malicious users), could have a dict of doc_locks just like pipeline_locks.

migrated from https://sourceforge.net/p/apertium/tickets/7/

jatinluthra14 commented 7 years ago

https://github.com/goavki/apertium-apy/pull/46

unhammer commented 7 years ago

@sushain97 I mentioned on irc, we don't need a per-pair list of semaphores. Since we don't keep pipe-processes around when doing doc translation, there's no need to differentiate between them here. So just one global semaphore with however many pipelines we can stomach.

sushain97 commented 7 years ago

Ah! Sounds good. This must have slipped my mind :)