-
Notifications
You must be signed in to change notification settings - Fork 0
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
Timing out on exporting documents & annotations #274
Comments
Note to self: Try gunicorn extra args approach in the first instance. |
I just tested importing and exporting the other day and I was surprised about how slow this is: is there a reason for it to take so long which might be fixable? |
We're looking into this soon so we'll have a look at what's slow and do some profiling. Thanks @johann-petrak |
OK I am apparently hitting this bug and we urgently need those 8000 annotated documents exported. Here are the last few lines I get on the log:
We really need those annotated documents exported urgently, how can I work around this error? |
No combination of export options seems to help with this either. |
according to the docker container names, the version I am running is 2.1.0 Not sure why my compose files contains: |
Version 3.3 is for the minimum version of docker compose file, so it's not related to the teamware version. I'll see if I can put together a quick script for downloading the annotations for you. I'm assuming you have full access to the machine that's hosting this teamware instance? |
Thanks! |
The code that generates the download is Short term you could probably do something with a django admin command that creates an instance of |
Yes I'm writing that script now |
Go into the container:
Run for example to create a zip file
Then you should be able to run the following to download the file to outside of your container
|
Still seeing this with a "larger" project (only 4k small documents really), this is a bit frustrating. I am running TW version 2.1.1 I am not sure why it is necessary to create a ZIP file anyways, why not stream to a gzip compressed jsonl file which should allow to immediately start responding? |
Even zip files can be streamed (c.f. Java’s |
Ah ok! Seems there is e.g. https://github.com/sandes/zipfly which seems to work fine. |
Sylvia reported 502 error when exporting her project (4500 docs and 13500 annotations), confirmed that this is happening.
It's most likely because the server is timing out due to the number of documents & annotation.
The text was updated successfully, but these errors were encountered: