Benjamin Bossan commited on
Commit
329262b
1 Parent(s): 1643735

Rename check_status -> check_job_status

Browse files
Files changed (2) hide show
  1. requests.org +1 -1
  2. src/gistillery/webservice.py +2 -2
requests.org CHANGED
@@ -40,7 +40,7 @@ curl -X 'POST' \
40
 
41
  #+begin_src bash
42
  curl -X 'GET' \
43
- 'http://localhost:8080/check_status/6012b198ffe0467d9344a196a2ced121' \
44
  -H 'accept: application/json'
45
  #+end_src
46
 
 
40
 
41
  #+begin_src bash
42
  curl -X 'GET' \
43
+ 'http://localhost:8080/check_job_status/6012b198ffe0467d9344a196a2ced121' \
44
  -H 'accept: application/json'
45
  #+end_src
46
 
src/gistillery/webservice.py CHANGED
@@ -37,8 +37,8 @@ def submit_job(input: RequestInput) -> str:
37
  return f"Submitted job {_id}"
38
 
39
 
40
- @app.get("/check_status/{_id}")
41
- def check_status(_id: str) -> JobStatusResult:
42
  with get_db_cursor() as cursor:
43
  cursor.execute(
44
  "SELECT status, last_updated FROM jobs WHERE entry_id = ?", (_id,)
 
37
  return f"Submitted job {_id}"
38
 
39
 
40
+ @app.get("/check_job_status/{_id}")
41
+ def check_job_status(_id: str) -> JobStatusResult:
42
  with get_db_cursor() as cursor:
43
  cursor.execute(
44
  "SELECT status, last_updated FROM jobs WHERE entry_id = ?", (_id,)