Skip to content

Include job_options in GET /jobs/{job_id} response#486

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/include-job-options-in-get-jobs-response
Draft

Include job_options in GET /jobs/{job_id} response#486
Copilot wants to merge 2 commits intomasterfrom
copilot/include-job-options-in-get-jobs-response

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 22, 2026

Job options submitted via POST /jobs were stored but never surfaced back to the user on GET /jobs/{job_id}.

Changes

  • BatchJobMetadata.to_api_dict() — when full=True, spreads job_options dict entries as top-level properties in the response, per the openEO API convention for custom backend properties
  • tests/test_views.py — adds test_get_job_info_with_job_options covering the end-to-end round-trip

Example

A job created with:

{ "process": {...}, "driver-memory": "3g", "executor-memory": "5g" }

Now returns those options in GET /jobs/{job_id}:

{
  "id": "job-123",
  "status": "created",
  "process": {...},
  "driver-memory": "3g",
  "executor-memory": "5g"
}

Copilot AI changed the title [WIP] Add job options to GET /jobs/{job_id} response Include job_options in GET /jobs/{job_id} response Apr 22, 2026
Copilot AI requested a review from jdries April 22, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include job options in GET /jobs/{job_id} response

2 participants