Resolving Sync API Termination Issue in Label Studio

Question:

When trying to sync Source storage using the Label Studio UI, the Sync API gets terminated after about 3 minutes. Is there a time limit imposed on API execution in Label Studio?

Answer:

The timeout for the wsgi worker is known to be approximately 90 seconds, which can explain the early termination of the Sync API. Consequently, the platform does not support long-running background processes in the open-source edition.

Additionally, the use of django_rq for background tasks is an enterprise feature only.

However, to address this issue, you can attempt to use the harakiri=0 setting for your wsgi workers to prevent them from timing out early by setting the UWSGI_WORKER_HARAKIRI=0 environment variable.