Working default workflow (file -> celery -> redis -> worker)
This commit is contained in:
@@ -35,12 +35,12 @@ class JobService:
|
||||
await self.repository.initialize()
|
||||
return self
|
||||
|
||||
async def create_job(self, file_id: PyObjectId, task_id: Optional[str] = None) -> ProcessingJob:
|
||||
async def create_job(self, document_id: PyObjectId, task_id: Optional[str] = None) -> ProcessingJob:
|
||||
"""
|
||||
Create a new processing job.
|
||||
|
||||
Args:
|
||||
file_id: Reference to the file document
|
||||
document_id: Reference to the file document
|
||||
task_id: Optional Celery task UUID
|
||||
|
||||
Returns:
|
||||
@@ -49,7 +49,7 @@ class JobService:
|
||||
Raises:
|
||||
JobRepositoryError: If database operation fails
|
||||
"""
|
||||
return await self.repository.create_job(file_id, task_id)
|
||||
return await self.repository.create_job(document_id, task_id)
|
||||
|
||||
async def get_job_by_id(self, job_id: PyObjectId) -> ProcessingJob:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user