File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
ogc_api_processes_fastapi Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ def get_jobs(self) -> List[models.StatusInfo]:
121
121
"""
122
122
123
123
@abc .abstractmethod
124
- def get_job (self , job_id : str ) -> models .StatusInfo :
124
+ def get_job (self , job_id : str , response : fastapi . Response ) -> models .StatusInfo :
125
125
"""Get status information of the job identified by `job_id`.
126
126
127
127
Called with `GET /jobs/{job_id}`.
@@ -130,6 +130,8 @@ def get_job(self, job_id: str) -> models.StatusInfo:
130
130
----------
131
131
job_id : str
132
132
Identifier of the job.
133
+ response: fastapi.Response
134
+ Response.
133
135
134
136
Returns
135
137
-------
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def make_links_to_job(
35
35
Returns
36
36
-------
37
37
List[models.Link]
38
- Links to attach to jon
38
+ Links to attach to job.
39
39
"""
40
40
rel_job_link = "self"
41
41
title_job_link = None
@@ -292,11 +292,12 @@ def create_get_job_endpoint(
292
292
operation_id = "getJobStatus" ,
293
293
)
294
294
def get_job (
295
- request : fastapi .Request ,
296
295
job_id : str ,
296
+ request : fastapi .Request ,
297
+ response : fastapi .Response ,
297
298
) -> models .StatusInfo :
298
299
"""Show the status of a job."""
299
- job = client .get_job (job_id = job_id )
300
+ job = client .get_job (job_id = job_id , response = response )
300
301
job .links = make_links_to_job (job = job , request = request )
301
302
302
303
return job
Original file line number Diff line number Diff line change @@ -77,10 +77,7 @@ def get_jobs(self) -> List[models.StatusInfo]:
77
77
]
78
78
return jobs_list
79
79
80
- def get_job (
81
- self ,
82
- job_id : str ,
83
- ) -> models .StatusInfo :
80
+ def get_job (self , job_id : str , response : fastapi .Response ) -> models .StatusInfo :
84
81
status_info = models .StatusInfo (
85
82
jobID = 1 , status = models .StatusCode .running , type = models .JobType .process
86
83
)
You can’t perform that action at this time.
0 commit comments