Skip to content

Commit fd4dc8b

Browse files
committed
Add listRuns
1 parent a81e00a commit fd4dc8b

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

python-scheduler.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ components:
3232
minimum: 1
3333
example: 1
3434
required: false
35+
base_uuid:
36+
name: base_uuid
37+
description: The unique identifier of a base. Sometimes also called dtable_uuid.
38+
in: query
39+
schema:
40+
type: string
41+
pattern: ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
42+
example: 5c264e76-0e5a-448a-9f34-580b551364ca
43+
required: false
3544
start:
3645
name: start
3746
in: query
@@ -231,3 +240,46 @@ paths:
231240
triggered_manually: 7
232241
unsuccessful_runs: 4
233242
total_count: 1
243+
/admin/runs/:
244+
get:
245+
tags:
246+
- Runs
247+
summary: List Runs
248+
operationId: listRuns
249+
security:
250+
- PythonSchedulerAuth: []
251+
parameters:
252+
- $ref: "#/components/parameters/org_id"
253+
- $ref: "#/components/parameters/base_uuid"
254+
- $ref: "#/components/parameters/start"
255+
- $ref: "#/components/parameters/end"
256+
- $ref: "#/components/parameters/page"
257+
- $ref: "#/components/parameters/per_page"
258+
responses:
259+
"200":
260+
description: OK
261+
content:
262+
application/json:
263+
schema:
264+
type: object
265+
example:
266+
runs:
267+
- id: 1
268+
dtable_uuid: a82d3e40-e63a-4b6a-aa5d-2488012d6af5
269+
270+
script_name: S9pJ.py
271+
operate_from: manualy
272+
return_code: 0
273+
success: true
274+
started_at: "2025-10-31T17:56:50+01:00"
275+
finished_at: "2025-10-31T17:56:51+01:00"
276+
- id: 2
277+
dtable_uuid: a82d3e40-e63a-4b6a-aa5d-2488012d6af5
278+
279+
script_name: S9pJ.py
280+
operate_from: automation-rule
281+
return_code: 0
282+
success: true
283+
started_at: "2025-10-31T17:57:32+01:00"
284+
finished_at: "2025-10-31T17:57:33+01:00"
285+
total_count: 1

0 commit comments

Comments
 (0)