celery added for asynchronus working of voice separation

This commit is contained in:
karthikeyan-ks
2025-01-08 01:09:50 +05:30
parent 10181e4d17
commit 889630d7f1
5 changed files with 22 additions and 16 deletions
+9
View File
@@ -0,0 +1,9 @@
from __future__ import absolute_import, unicode_literals
from celery import shared_task
import time
@shared_task
def process_uploaded_file(file_path):
# Simulate long-running task
time.sleep(300) # Replace with actual file processing logic
return 'File processed'