API endpoint that allows jobs to be viewed or edited.

Pass the start_now url parameter to the POST method to enqueue the job immediately.

Use the delay field to create a test job with fake duration of work (in seconds).

Actions

/jobs/{id}/run/ (POST)

Run a job (add it to the queue).

/jobs/{id}/cancel/ (POST)

Cancel a job (terminate the background task)

GET /api/v2/jobs/213/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 213,
    "details": "https://api.beluga.insectai.org/api/v2/jobs/213/?format=api",
    "name": "Panama New Settings",
    "delay": 0,
    "limit": 200,
    "shuffle": true,
    "project": {
        "id": 20,
        "name": "Barro Colorado Island Research Station",
        "details": "https://api.beluga.insectai.org/api/v2/projects/20/?format=api",
        "user_permissions": []
    },
    "deployment": {
        "id": 59,
        "name": "AMI System v2 Sample (Nov)",
        "details": "https://api.beluga.insectai.org/api/v2/deployments/59/?format=api",
        "user_permissions": []
    },
    "source_image_collection": null,
    "source_image_single": null,
    "pipeline": {
        "id": 1,
        "details": "https://api.beluga.insectai.org/api/v2/ml/pipelines/1/?format=api",
        "name": "Panama moths",
        "slug": "panama_moths_2023",
        "description": "",
        "version": 1,
        "version_name": "",
        "created_at": "2023-11-10T02:41:27.683282",
        "updated_at": "2026-04-01T17:09:36.425601",
        "user_permissions": []
    },
    "status": "SUCCESS",
    "created_at": "2023-12-03T04:32:40.740777",
    "updated_at": "2024-11-13T17:15:35.437775",
    "started_at": "2023-12-03T04:33:45.508492",
    "finished_at": "2023-12-03T04:41:53.213179",
    "duration": "487.704687",
    "progress": {
        "summary": {
            "status": "SUCCESS",
            "progress": 0.75
        },
        "stages": [
            {
                "status": "CREATED",
                "progress": 0.0,
                "key": "delay",
                "name": "Delay",
                "params": [
                    {
                        "name": "Delay",
                        "key": "delay",
                        "category": "default",
                        "value": 1
                    },
                    {
                        "name": "Mood",
                        "key": "mood",
                        "category": "default",
                        "value": "😴"
                    }
                ]
            },
            {
                "status": "SUCCESS",
                "progress": 1.0,
                "key": "collect",
                "name": "Collect",
                "params": [
                    {
                        "name": "Total Images",
                        "key": "total_images",
                        "category": "default",
                        "value": 23
                    }
                ]
            },
            {
                "status": "SUCCESS",
                "progress": 1.0,
                "key": "process",
                "name": "Process",
                "params": [
                    {
                        "name": "Proccessed",
                        "key": "proccessed",
                        "category": "default",
                        "value": 24
                    },
                    {
                        "name": "Remaining",
                        "key": "remaining",
                        "category": "default",
                        "value": -1
                    },
                    {
                        "name": "Detections",
                        "key": "detections",
                        "category": "default",
                        "value": 633
                    },
                    {
                        "name": "Classifications",
                        "key": "classifications",
                        "category": "default",
                        "value": 553
                    }
                ]
            },
            {
                "status": "SUCCESS",
                "progress": 1.0,
                "key": "results",
                "name": "Results",
                "params": [
                    {
                        "name": "Objects created",
                        "key": "objects_created",
                        "category": "default",
                        "value": 63
                    }
                ]
            }
        ],
        "errors": [],
        "logs": [
            "[2023-12-03 04:41:53] INFO Finished job #213 \"Panama New Settings\" (SUCCESS)",
            "[2023-12-03 04:41:53] INFO Changing status of job 213 to SUCCESS",
            "[2023-12-03 04:41:52] INFO Changing status of job 213 to SUCCESS",
            "[2023-12-03 04:41:52] INFO Created 63 objects",
            "[2023-12-03 04:41:49] INFO Saving results",
            "[2023-12-03 04:41:48] INFO Found 31 classifications",
            "[2023-12-03 04:41:48] INFO Found 32 detections",
            "[2023-12-03 04:41:25] INFO Sending 1 images to ML backend panama_moths_2023",
            "[2023-12-03 04:41:25] INFO Created 84 objects",
            "[2023-12-03 04:41:22] INFO Saving results",
            "[2023-12-03 04:41:22] INFO Found 39 classifications",
            "[2023-12-03 04:41:21] INFO Found 45 detections",
            "[2023-12-03 04:40:51] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:40:51] INFO Created 122 objects",
            "[2023-12-03 04:40:47] INFO Saving results",
            "[2023-12-03 04:40:46] INFO Found 60 classifications",
            "[2023-12-03 04:40:46] INFO Found 62 detections",
            "[2023-12-03 04:40:02] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:40:02] INFO Created 92 objects",
            "[2023-12-03 04:39:59] INFO Saving results",
            "[2023-12-03 04:39:59] INFO Found 44 classifications",
            "[2023-12-03 04:39:58] INFO Found 48 detections",
            "[2023-12-03 04:39:22] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:39:22] INFO Created 148 objects",
            "[2023-12-03 04:39:18] INFO Saving results",
            "[2023-12-03 04:39:18] INFO Found 72 classifications",
            "[2023-12-03 04:39:17] INFO Found 76 detections",
            "[2023-12-03 04:38:26] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:38:26] INFO Created 69 objects",
            "[2023-12-03 04:38:23] INFO Saving results",
            "[2023-12-03 04:38:23] INFO Found 28 classifications",
            "[2023-12-03 04:38:23] INFO Found 41 detections",
            "[2023-12-03 04:37:53] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:37:53] INFO Created 121 objects",
            "[2023-12-03 04:37:52] INFO Created 121 objects",
            "[2023-12-03 04:37:49] INFO Saving results",
            "[2023-12-03 04:37:49] INFO Found 60 classifications",
            "[2023-12-03 04:37:49] INFO Found 61 detections",
            "[2023-12-03 04:37:10] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:37:09] INFO Created 76 objects",
            "[2023-12-03 04:37:07] INFO Saving results",
            "[2023-12-03 04:37:06] INFO Found 28 classifications",
            "[2023-12-03 04:37:06] INFO Found 48 detections",
            "[2023-12-03 04:36:35] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:36:34] INFO Created 86 objects",
            "[2023-12-03 04:36:32] INFO Saving results",
            "[2023-12-03 04:36:32] INFO Found 39 classifications",
            "[2023-12-03 04:36:32] INFO Found 47 detections",
            "[2023-12-03 04:35:58] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:35:58] INFO Created 141 objects",
            "[2023-12-03 04:35:53] INFO Saving results",
            "[2023-12-03 04:35:53] INFO Found 69 classifications",
            "[2023-12-03 04:35:53] INFO Found 72 detections",
            "[2023-12-03 04:35:01] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:35:01] INFO Created 110 objects",
            "[2023-12-03 04:34:58] INFO Saving results",
            "[2023-12-03 04:34:58] INFO Found 52 classifications",
            "[2023-12-03 04:34:58] INFO Found 58 detections",
            "[2023-12-03 04:34:17] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:34:17] INFO Created 74 objects",
            "[2023-12-03 04:34:15] INFO Saving results",
            "[2023-12-03 04:34:15] INFO Found 31 classifications",
            "[2023-12-03 04:34:15] INFO Found 43 detections",
            "[2023-12-03 04:33:45] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:33:45] INFO Shuffling images",
            "[2023-12-03 04:33:45] INFO Found 23 images to process",
            "[2023-12-03 04:33:45] INFO Changing status of job 213 to STARTED",
            "[2023-12-03 04:33:45] INFO Running job #213 \"Panama New Settings\" (PENDING)",
            "[2023-12-03 04:33:45] INFO Changing status of job 213 to PENDING",
            "[2023-12-03 04:33:07] INFO Finished job #213 \"Panama New Settings\" (SUCCESS)",
            "[2023-12-03 04:33:07] INFO Changing status of job 213 to SUCCESS",
            "[2023-12-03 04:33:07] INFO Changing status of job 213 to STARTED",
            "[2023-12-03 04:33:07] INFO Running job #213 \"Panama New Settings\" (PENDING)"
        ]
    },
    "logs": {
        "stdout": [
            "[2023-12-03 04:41:53] INFO Finished job #213 \"Panama New Settings\" (SUCCESS)",
            "[2023-12-03 04:41:53] INFO Changing status of job 213 to SUCCESS",
            "[2023-12-03 04:41:52] INFO Changing status of job 213 to SUCCESS",
            "[2023-12-03 04:41:52] INFO Created 63 objects",
            "[2023-12-03 04:41:49] INFO Saving results",
            "[2023-12-03 04:41:48] INFO Found 31 classifications",
            "[2023-12-03 04:41:48] INFO Found 32 detections",
            "[2023-12-03 04:41:25] INFO Sending 1 images to ML backend panama_moths_2023",
            "[2023-12-03 04:41:25] INFO Created 84 objects",
            "[2023-12-03 04:41:22] INFO Saving results",
            "[2023-12-03 04:41:22] INFO Found 39 classifications",
            "[2023-12-03 04:41:21] INFO Found 45 detections",
            "[2023-12-03 04:40:51] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:40:51] INFO Created 122 objects",
            "[2023-12-03 04:40:47] INFO Saving results",
            "[2023-12-03 04:40:46] INFO Found 60 classifications",
            "[2023-12-03 04:40:46] INFO Found 62 detections",
            "[2023-12-03 04:40:02] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:40:02] INFO Created 92 objects",
            "[2023-12-03 04:39:59] INFO Saving results",
            "[2023-12-03 04:39:59] INFO Found 44 classifications",
            "[2023-12-03 04:39:58] INFO Found 48 detections",
            "[2023-12-03 04:39:22] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:39:22] INFO Created 148 objects",
            "[2023-12-03 04:39:18] INFO Saving results",
            "[2023-12-03 04:39:18] INFO Found 72 classifications",
            "[2023-12-03 04:39:17] INFO Found 76 detections",
            "[2023-12-03 04:38:26] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:38:26] INFO Created 69 objects",
            "[2023-12-03 04:38:23] INFO Saving results",
            "[2023-12-03 04:38:23] INFO Found 28 classifications",
            "[2023-12-03 04:38:23] INFO Found 41 detections",
            "[2023-12-03 04:37:53] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:37:53] INFO Created 121 objects",
            "[2023-12-03 04:37:52] INFO Created 121 objects",
            "[2023-12-03 04:37:49] INFO Saving results",
            "[2023-12-03 04:37:49] INFO Found 60 classifications",
            "[2023-12-03 04:37:49] INFO Found 61 detections",
            "[2023-12-03 04:37:10] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:37:09] INFO Created 76 objects",
            "[2023-12-03 04:37:07] INFO Saving results",
            "[2023-12-03 04:37:06] INFO Found 28 classifications",
            "[2023-12-03 04:37:06] INFO Found 48 detections",
            "[2023-12-03 04:36:35] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:36:34] INFO Created 86 objects",
            "[2023-12-03 04:36:32] INFO Saving results",
            "[2023-12-03 04:36:32] INFO Found 39 classifications",
            "[2023-12-03 04:36:32] INFO Found 47 detections",
            "[2023-12-03 04:35:58] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:35:58] INFO Created 141 objects",
            "[2023-12-03 04:35:53] INFO Saving results",
            "[2023-12-03 04:35:53] INFO Found 69 classifications",
            "[2023-12-03 04:35:53] INFO Found 72 detections",
            "[2023-12-03 04:35:01] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:35:01] INFO Created 110 objects",
            "[2023-12-03 04:34:58] INFO Saving results",
            "[2023-12-03 04:34:58] INFO Found 52 classifications",
            "[2023-12-03 04:34:58] INFO Found 58 detections",
            "[2023-12-03 04:34:17] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:34:17] INFO Created 74 objects",
            "[2023-12-03 04:34:15] INFO Saving results",
            "[2023-12-03 04:34:15] INFO Found 31 classifications",
            "[2023-12-03 04:34:15] INFO Found 43 detections",
            "[2023-12-03 04:33:45] INFO Sending 2 images to ML backend panama_moths_2023",
            "[2023-12-03 04:33:45] INFO Shuffling images",
            "[2023-12-03 04:33:45] INFO Found 23 images to process",
            "[2023-12-03 04:33:45] INFO Changing status of job 213 to STARTED",
            "[2023-12-03 04:33:45] INFO Running job #213 \"Panama New Settings\" (PENDING)",
            "[2023-12-03 04:33:45] INFO Changing status of job 213 to PENDING",
            "[2023-12-03 04:33:07] INFO Finished job #213 \"Panama New Settings\" (SUCCESS)",
            "[2023-12-03 04:33:07] INFO Changing status of job 213 to SUCCESS",
            "[2023-12-03 04:33:07] INFO Changing status of job 213 to STARTED",
            "[2023-12-03 04:33:07] INFO Running job #213 \"Panama New Settings\" (PENDING)"
        ],
        "stderr": []
    },
    "job_type": {
        "name": "ML pipeline",
        "key": "ml"
    },
    "data_export": null,
    "dispatch_mode": "internal",
    "result": null,
    "user_permissions": []
}