Currently, tasks like file_cleanup and encryption run synchronously on the main thread, blocking API access and potentially crashing the server if an error occurs.
Convert file_cleanup and encryption operations into asynchronous Celery tasks.
Ensure the API returns a "task queued" status immediately, moving the execution burden to background workers.
Currently, tasks like file_cleanup and encryption run synchronously on the main thread, blocking API access and potentially crashing the server if an error occurs.
Convert file_cleanup and encryption operations into asynchronous Celery tasks.
Ensure the API returns a "task queued" status immediately, moving the execution burden to background workers.