Job Instance
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/223/?format=api
{ "id": 223, "details": "https://api.beluga.insectai.org/api/v2/jobs/223/?format=api", "name": "Panama January, Hourly", "delay": 0, "limit": 100, "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": null, "source_image_collection": { "id": 18, "name": "Panama - Hourly", "details": "https://api.beluga.insectai.org/api/v2/captures/collections/18/?format=api", "method": "interval", "user_permissions": [] }, "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-03T23:50:27.794364", "updated_at": "2024-11-13T17:15:35.398630", "started_at": "2023-12-03T23:50:30.852667", "finished_at": "2023-12-03T23:54:40.776780", "duration": "249.924113", "progress": { "summary": { "status": "SUCCESS", "progress": 1.0 }, "stages": [ { "status": "SUCCESS", "progress": 1.0, "key": "collect", "name": "Collect", "params": [ { "name": "Total Images", "key": "total_images", "category": "default", "value": 25 } ] }, { "status": "SUCCESS", "progress": 1.0, "key": "process", "name": "Process", "params": [ { "name": "Proccessed", "key": "proccessed", "category": "default", "value": 26 }, { "name": "Remaining", "key": "remaining", "category": "default", "value": -1 }, { "name": "Detections", "key": "detections", "category": "default", "value": 303 }, { "name": "Classifications", "key": "classifications", "category": "default", "value": 252 } ] }, { "status": "SUCCESS", "progress": 1.0, "key": "results", "name": "Results", "params": [ { "name": "Objects created", "key": "objects_created", "category": "default", "value": 24 } ] } ], "errors": [], "logs": [ "[2023-12-03 23:54:41] INFO Finished job #223 \"Panama January, Hourly\" (SUCCESS)", "[2023-12-03 23:54:40] INFO Finished job #223 \"Panama January, Hourly\" (SUCCESS)", "[2023-12-03 23:54:40] INFO Changing status of job 223 to SUCCESS", "[2023-12-03 23:54:39] INFO Created 24 objects", "[2023-12-03 23:54:38] INFO Saving results", "[2023-12-03 23:54:37] INFO Found 12 classifications", "[2023-12-03 23:54:37] INFO Found 12 detections", "[2023-12-03 23:54:27] INFO Sending 1 images to ML backend panama_moths_2023", "[2023-12-03 23:54:26] INFO Created 43 objects", "[2023-12-03 23:54:25] INFO Saving results", "[2023-12-03 23:54:24] INFO Found 20 classifications", "[2023-12-03 23:54:24] INFO Found 23 detections", "[2023-12-03 23:54:06] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:54:05] INFO Created 60 objects", "[2023-12-03 23:54:04] INFO Saving results", "[2023-12-03 23:54:03] INFO Found 29 classifications", "[2023-12-03 23:54:02] INFO Found 31 detections", "[2023-12-03 23:53:42] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:53:41] INFO Created 44 objects", "[2023-12-03 23:53:40] INFO Saving results", "[2023-12-03 23:53:40] INFO Found 18 classifications", "[2023-12-03 23:53:39] INFO Found 26 detections", "[2023-12-03 23:53:21] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:53:20] INFO Created 29 objects", "[2023-12-03 23:53:19] INFO Saving results", "[2023-12-03 23:53:19] INFO Found 13 classifications", "[2023-12-03 23:53:19] INFO Found 16 detections", "[2023-12-03 23:53:06] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:53:06] INFO Created 37 objects", "[2023-12-03 23:53:04] INFO Saving results", "[2023-12-03 23:53:04] INFO Found 17 classifications", "[2023-12-03 23:53:04] INFO Found 20 detections", "[2023-12-03 23:52:49] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:52:49] INFO Created 53 objects", "[2023-12-03 23:52:47] INFO Saving results", "[2023-12-03 23:52:47] INFO Found 25 classifications", "[2023-12-03 23:52:47] INFO Found 28 detections", "[2023-12-03 23:52:28] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:52:28] INFO Created 75 objects", "[2023-12-03 23:52:26] INFO Saving results", "[2023-12-03 23:52:25] INFO Found 34 classifications", "[2023-12-03 23:52:25] INFO Found 41 detections", "[2023-12-03 23:51:58] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:51:58] INFO Created 20 objects", "[2023-12-03 23:51:57] INFO Saving results", "[2023-12-03 23:51:57] INFO Found 18 classifications", "[2023-12-03 23:51:57] INFO Found 19 detections", "[2023-12-03 23:51:41] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:51:41] INFO Created 58 objects", "[2023-12-03 23:51:39] INFO Saving results", "[2023-12-03 23:51:39] INFO Found 22 classifications", "[2023-12-03 23:51:39] INFO Found 36 detections", "[2023-12-03 23:51:14] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:51:14] INFO Created 32 objects", "[2023-12-03 23:51:13] INFO Saving results", "[2023-12-03 23:51:13] INFO Found 15 classifications", "[2023-12-03 23:51:13] INFO Found 17 detections", "[2023-12-03 23:51:00] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:51:00] INFO Created 50 objects", "[2023-12-03 23:50:59] INFO Saving results", "[2023-12-03 23:50:59] INFO Found 23 classifications", "[2023-12-03 23:50:58] INFO Found 27 detections", "[2023-12-03 23:50:39] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:50:39] INFO Created 13 objects", "[2023-12-03 23:50:38] INFO Saving results", "[2023-12-03 23:50:38] INFO Found 6 classifications", "[2023-12-03 23:50:38] INFO Found 7 detections", "[2023-12-03 23:50:30] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:50:30] INFO Shuffling images", "[2023-12-03 23:50:30] INFO Found 25 images to process", "[2023-12-03 23:50:30] INFO Changing status of job 223 to STARTED", "[2023-12-03 23:50:30] INFO Running job #223 \"Panama January, Hourly\" (PENDING)", "[2023-12-03 23:50:30] INFO Changing status of job 223 to PENDING" ] }, "logs": { "stdout": [ "[2023-12-03 23:54:41] INFO Finished job #223 \"Panama January, Hourly\" (SUCCESS)", "[2023-12-03 23:54:40] INFO Finished job #223 \"Panama January, Hourly\" (SUCCESS)", "[2023-12-03 23:54:40] INFO Changing status of job 223 to SUCCESS", "[2023-12-03 23:54:39] INFO Created 24 objects", "[2023-12-03 23:54:38] INFO Saving results", "[2023-12-03 23:54:37] INFO Found 12 classifications", "[2023-12-03 23:54:37] INFO Found 12 detections", "[2023-12-03 23:54:27] INFO Sending 1 images to ML backend panama_moths_2023", "[2023-12-03 23:54:26] INFO Created 43 objects", "[2023-12-03 23:54:25] INFO Saving results", "[2023-12-03 23:54:24] INFO Found 20 classifications", "[2023-12-03 23:54:24] INFO Found 23 detections", "[2023-12-03 23:54:06] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:54:05] INFO Created 60 objects", "[2023-12-03 23:54:04] INFO Saving results", "[2023-12-03 23:54:03] INFO Found 29 classifications", "[2023-12-03 23:54:02] INFO Found 31 detections", "[2023-12-03 23:53:42] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:53:41] INFO Created 44 objects", "[2023-12-03 23:53:40] INFO Saving results", "[2023-12-03 23:53:40] INFO Found 18 classifications", "[2023-12-03 23:53:39] INFO Found 26 detections", "[2023-12-03 23:53:21] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:53:20] INFO Created 29 objects", "[2023-12-03 23:53:19] INFO Saving results", "[2023-12-03 23:53:19] INFO Found 13 classifications", "[2023-12-03 23:53:19] INFO Found 16 detections", "[2023-12-03 23:53:06] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:53:06] INFO Created 37 objects", "[2023-12-03 23:53:04] INFO Saving results", "[2023-12-03 23:53:04] INFO Found 17 classifications", "[2023-12-03 23:53:04] INFO Found 20 detections", "[2023-12-03 23:52:49] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:52:49] INFO Created 53 objects", "[2023-12-03 23:52:47] INFO Saving results", "[2023-12-03 23:52:47] INFO Found 25 classifications", "[2023-12-03 23:52:47] INFO Found 28 detections", "[2023-12-03 23:52:28] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:52:28] INFO Created 75 objects", "[2023-12-03 23:52:26] INFO Saving results", "[2023-12-03 23:52:25] INFO Found 34 classifications", "[2023-12-03 23:52:25] INFO Found 41 detections", "[2023-12-03 23:51:58] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:51:58] INFO Created 20 objects", "[2023-12-03 23:51:57] INFO Saving results", "[2023-12-03 23:51:57] INFO Found 18 classifications", "[2023-12-03 23:51:57] INFO Found 19 detections", "[2023-12-03 23:51:41] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:51:41] INFO Created 58 objects", "[2023-12-03 23:51:39] INFO Saving results", "[2023-12-03 23:51:39] INFO Found 22 classifications", "[2023-12-03 23:51:39] INFO Found 36 detections", "[2023-12-03 23:51:14] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:51:14] INFO Created 32 objects", "[2023-12-03 23:51:13] INFO Saving results", "[2023-12-03 23:51:13] INFO Found 15 classifications", "[2023-12-03 23:51:13] INFO Found 17 detections", "[2023-12-03 23:51:00] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:51:00] INFO Created 50 objects", "[2023-12-03 23:50:59] INFO Saving results", "[2023-12-03 23:50:59] INFO Found 23 classifications", "[2023-12-03 23:50:58] INFO Found 27 detections", "[2023-12-03 23:50:39] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:50:39] INFO Created 13 objects", "[2023-12-03 23:50:38] INFO Saving results", "[2023-12-03 23:50:38] INFO Found 6 classifications", "[2023-12-03 23:50:38] INFO Found 7 detections", "[2023-12-03 23:50:30] INFO Sending 2 images to ML backend panama_moths_2023", "[2023-12-03 23:50:30] INFO Shuffling images", "[2023-12-03 23:50:30] INFO Found 25 images to process", "[2023-12-03 23:50:30] INFO Changing status of job 223 to STARTED", "[2023-12-03 23:50:30] INFO Running job #223 \"Panama January, Hourly\" (PENDING)", "[2023-12-03 23:50:30] INFO Changing status of job 223 to PENDING" ], "stderr": [] }, "job_type": { "name": "ML pipeline", "key": "ml" }, "data_export": null, "dispatch_mode": "internal", "result": null, "user_permissions": [] }