From 57c7fe48b70a2d953d7a8b0e18f09634976da3d6 Mon Sep 17 00:00:00 2001 From: Lukas Bindreiter Date: Tue, 16 Sep 2025 10:32:19 +0200 Subject: [PATCH] Add start time and job state to progress endpoint --- .github/workflows/buf.yaml | 2 +- apis/workflows/v1/job.proto | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/buf.yaml b/.github/workflows/buf.yaml index 8ede800..f3a53ec 100644 --- a/.github/workflows/buf.yaml +++ b/.github/workflows/buf.yaml @@ -20,7 +20,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Buf build/lint/format/breaking/push uses: bufbuild/buf-action@v1 diff --git a/apis/workflows/v1/job.proto b/apis/workflows/v1/job.proto index c473bc8..8f1385d 100644 --- a/apis/workflows/v1/job.proto +++ b/apis/workflows/v1/job.proto @@ -33,18 +33,13 @@ message GetJobRequest { tilebox.v1.ID job_id = 1 [(buf.validate.field).required = true]; } -// GetJobProgressRequest requests the status of a jobs progress bars. +// GetJobProgressRequest requests the status of a jobs progress bars. It returns a full job object, but only +// partially filled with progress bars, job state and a started_at timestamp. message GetJobProgressRequest { // The ID of the job to get progress for. tilebox.v1.ID job_id = 1 [(buf.validate.field).required = true]; } -// JobProgressResponse is the response to a GetJobProgressRequest. -message JobProgressResponse { - // The progress bars for a given job. - repeated ProgressBar progress_bars = 1; -} - // RetryJobRequest requests a retry of a job that has failed. message RetryJobRequest { // The job to retry. @@ -156,7 +151,7 @@ message CloneJobRequest { service JobService { rpc SubmitJob(SubmitJobRequest) returns (Job); rpc GetJob(GetJobRequest) returns (Job); - rpc GetJobProgress(GetJobProgressRequest) returns (JobProgressResponse); + rpc GetJobProgress(GetJobProgressRequest) returns (Job); rpc RetryJob(RetryJobRequest) returns (RetryJobResponse); rpc CancelJob(CancelJobRequest) returns (CancelJobResponse); rpc VisualizeJob(VisualizeJobRequest) returns (Diagram);