From a98a4d647f880f461ca5658da553cefabf49b5de Mon Sep 17 00:00:00 2001 From: RapidPoseidon Date: Fri, 19 Jun 2026 08:50:07 +0000 Subject: [PATCH] fix(job): read job state field renamed from status The job endpoint response model (GetJobByIdEndpointOutput) was regenerated in 3.14.2 with its `status` field renamed to `state` (now an AudienceJobState enum), but RapidataJob.get_status() still read `.status`, raising AttributeError on every job status check (e.g. display_progress_bar, get_results). Read `.state.value` to restore the str return contract; the enum values (Completed, Failed, ...) already match the strings the callers compare against. Co-Authored-By: Claude Opus 4.8 Co-Authored-By: lino --- src/rapidata/rapidata_client/job/rapidata_job.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rapidata/rapidata_client/job/rapidata_job.py b/src/rapidata/rapidata_client/job/rapidata_job.py index 358fc4e33..83d1bf71a 100644 --- a/src/rapidata/rapidata_client/job/rapidata_job.py +++ b/src/rapidata/rapidata_client/job/rapidata_job.py @@ -160,7 +160,9 @@ def get_status(self) -> str: The current status of the job as a string. """ with tracer.start_as_current_span("RapidataJob.get_status"): - return self._openapi_service.order.job_api.job_job_id_get(self.id).status + return self._openapi_service.order.job_api.job_job_id_get( + self.id + ).state.value def get_results(self) -> RapidataResults: """