BharatSahAIyak / autotune

A comprehensive toolkit for seamless data generation and fine-tuning of NLP models, all conveniently packed into a single block.
MIT License
9 stars 5 forks source link

Expose Celery Task Queue #120

Open sooraj1002 opened 4 months ago

sooraj1002 commented 4 months ago

TASK

We need to expose the celery tasks which are pending for:

API Specifications:

REQUEST HEADERS

RESPONSE

{
    "queued": [
        {
            "taskId": "CELERY_TASK_ID",
            "task_type": "infer from the task_name",
            "taskName": "task_name(from the Task Model)",
            "user": "user_id for user who created it",
            "taskArgs": "Expose using celery"
        },
        {
            "taskId": "CELERY_TASK_ID",
            "task_type": "infer from the task_name",
            "taskName": "task_name(from the Task Model)",
            "user": "user_id for user who created it",
            "taskArgs": "Expose using celery"
        }
    ],
    "scheduled": [
        {
            "taskId": "CELERY_TASK_ID",
            "task_type": "infer from the task_name",
            "taskName": "task_name(from the Task Model)",
            "user": "user_id for user who created it",
            "taskArgs": "Expose using celery",
            "scheduled_for": "Time in IST"
        },
        {
            "taskId": "CELERY_TASK_ID",
            "task_type": "infer from the task_name",
            "taskName": "task_name(from the Task Model)",
            "user": "user_id for user who created it",
            "taskArgs": "Expose using celery",
            "scheduled_for": "Time in IST"
        }
    ]
}
ranjanmangla1 commented 4 months ago

hey @sooraj1002 , can I take this issue? I already have a lot of experience working with dramatiq (it is very close to celery)

sooraj1002 commented 4 months ago

Sure. have assigned the ticket