feat: Setup celery worker

This commit is contained in:
2026-06-29 17:51:15 +05:30
parent 0cc2b5fe57
commit d980558bee
2 changed files with 80 additions and 3 deletions

View File

@@ -1,13 +1,12 @@
from fastapi import HTTPException, status
class AlemnoException(Exception):
"""Base exception for Alemno Payments Application"""
pass
class JobNotFoundException(AlemnoException):
"""Raised when a job is not found"""
def __init__(self, job_id: str):
self.job_id = job_id
super().__init__(f"Job with ID {job_id} not found")
@@ -15,6 +14,7 @@ class JobNotFoundException(AlemnoException):
class InvalidCSVException(AlemnoException):
"""Raised when the uploaded CSV is invalid"""
def __init__(self, detail: str):
self.detail = detail
super().__init__(detail)