This is an automated email from the ASF dual-hosted git repository.
DImuthuUpe pushed a commit to branch workflow-pause-on-auth
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/workflow-pause-on-auth by this
push:
new 378f572ba7 Updating docs for executions
378f572ba7 is described below
commit 378f572ba76de4096504fa5dc8a96944f80dff43
Author: DImuthuUpe <[email protected]>
AuthorDate: Fri Nov 6 20:56:00 2026 -0500
Updating docs for executions
---
docs/api.md | 40 ++++++++++++++++++++++++++++
docs/openapi.yaml | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 118 insertions(+)
diff --git a/docs/api.md b/docs/api.md
index c40d63564f..3af9afe51e 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -1857,6 +1857,7 @@ Deleting the process deletes the batch section, and the
mappings with it.
"userId": "cilogon:sub:1234",
"processType": "BATCH_JOB",
"lastStatusId": "9f8e7d6c-5b4a-4392-8172-6a5b4c3d2e1f",
+ "lastExecutionId": null,
"batchProcess": {
"batchProcessId": "7e6d5c4b-3a29-4187-9605-4b3a2c1d0e9f",
"deploymentId": "c3d4e5f6-a7b8-4901-a2b3-c4d5e6f7a8b9",
@@ -2033,6 +2034,45 @@ Statuses come back oldest first. The newest one is also
cached on the process it
A `statusId` from one process is not reachable through another process's path:
the
mismatch is a `404`, not another run's status.
+## Process Executions
+
+The workflow runs started on a process's behalf, read-only and nested under
the process:
+
+```
+GET /api/v1/processes/{processId}/executions
+GET /api/v1/processes/{processId}/executions/{executionId}
+```
+
+Each entry records one workflow instance — job submission, job monitoring or
job
+completion — by the id the workflow engine knows it by (`executionId`). Like
statuses,
+executions are recorded by the server when it starts a workflow, never
accepted from a
+client: `POST` and `PUT` return `405 Method Not Allowed`.
+
+Executions come back oldest first. The newest one is also cached on the
process itself
+as `lastExecutionId`, which stays `null` until the first workflow is started.
+
+```json
+[
+ {
+ "processExecutionId": "4c3b2a19-0f8e-4d7c-9b6a-5e4d3c2b1a09",
+ "processId": "a1b2c3d4-e5f6-4708-9a1b-2c3d4e5f6a7b",
+ "executionId": "e0d1c2b3-a4f5-4e6d-8c7b-9a0f1e2d3c4b",
+ "executionType": "BATCH_JOB_SUBMISSION",
+ "timestamp": 1755780005000
+ }
+]
+```
+
+`executionType` is one of `BATCH_JOB_SUBMISSION`, `JOB_MONITORING`,
+`BATCH_JOB_COMPLETION`. The `{executionId}` in the path is the entry's
+`processExecutionId`, not the workflow engine's `executionId`.
+
+Reads are owner-scoped: only the process's owner or an admin may list or read
its
+executions; anyone else gets `403`. A `processExecutionId` from one process is
not
+reachable through another process's path — the mismatch is a `404`.
+
+Deleting a process deletes its executions with it.
+
## Process Tasks
A [process](#processes) is carried out as an ordered list of tasks. There are
four kinds, each its own collection under the process:
diff --git a/docs/openapi.yaml b/docs/openapi.yaml
index b142c65d06..876f468f2a 100644
--- a/docs/openapi.yaml
+++ b/docs/openapi.yaml
@@ -1890,6 +1890,55 @@ paths:
"502": { $ref: "#/components/responses/BadGateway" }
"500": { $ref: "#/components/responses/InternalError" }
+ /api/v1/processes/{processId}/executions:
+ parameters:
+ - $ref: "#/components/parameters/ProcessId"
+ get:
+ tags: [Processes]
+ summary: List the workflow executions started for a process
+ description: |
+ Read-only, oldest first. Executions are recorded by the server when it
starts a
+ workflow for the process, never accepted from a client, so there is no
`POST`
+ or `PUT` here. Only the process's owner or an admin may read them.
+ operationId: listProcessExecutions
+ responses:
+ "200":
+ description: Every execution recorded for the process.
+ content:
+ application/json:
+ schema:
+ type: array
+ items: { $ref: "#/components/schemas/ExecutionResponse" }
+ "401": { $ref: "#/components/responses/Unauthorized" }
+ "403": { $ref: "#/components/responses/Forbidden" }
+ "404": { $ref: "#/components/responses/NotFound" }
+ "500": { $ref: "#/components/responses/InternalError" }
+
+ /api/v1/processes/{processId}/executions/{executionId}:
+ parameters:
+ - $ref: "#/components/parameters/ProcessId"
+ - name: executionId
+ in: path
+ required: true
+ description: The execution's `processExecutionId`.
+ schema: { type: string }
+ get:
+ tags: [Processes]
+ summary: Read one recorded execution
+ description: |
+ An execution of another process is a `404` through this process's path.
+ operationId: getProcessExecution
+ responses:
+ "200":
+ description: The execution.
+ content:
+ application/json:
+ schema: { $ref: "#/components/schemas/ExecutionResponse" }
+ "401": { $ref: "#/components/responses/Unauthorized" }
+ "403": { $ref: "#/components/responses/Forbidden" }
+ "404": { $ref: "#/components/responses/NotFound" }
+ "500": { $ref: "#/components/responses/InternalError" }
+
/api/v1/processes/{processId}/data-staging-tasks:
parameters:
- $ref: "#/components/parameters/ProcessId"
@@ -2908,6 +2957,9 @@ components:
ProcessStatusType:
type: string
enum: [CREATED, SUBMITTED, RUNNING, COMPLETED, FAILED]
+ ProcessExecutionType:
+ type: string
+ enum: [BATCH_JOB_SUBMISSION, JOB_MONITORING, BATCH_JOB_COMPLETION]
OnFailureAction:
type: string
enum: [RETRY, SKIP, EXIT]
@@ -3597,6 +3649,10 @@ components:
- { $ref: "#/components/schemas/ProcessType" }
- { type: "null" }
lastStatusId: { type: [string, "null"], format: uuid }
+ lastExecutionId:
+ type: [string, "null"]
+ format: uuid
+ description: The newest recorded execution's `processExecutionId`,
if any.
batchProcess:
oneOf:
- { $ref: "#/components/schemas/BatchProcessResponse" }
@@ -3622,6 +3678,28 @@ components:
description: When the status was recorded, in milliseconds since the
epoch.
required: [processStatusId]
+ ExecutionResponse:
+ type: object
+ description: |
+ One workflow execution started for a process. There is no request
counterpart:
+ executions are recorded by the server when it starts a workflow, never
created
+ from a client body.
+ properties:
+ processExecutionId: { type: string, format: uuid }
+ processId: { type: [string, "null"], format: uuid }
+ executionId:
+ type: string
+ description: The id the workflow engine knows the run by.
+ executionType:
+ oneOf:
+ - { $ref: "#/components/schemas/ProcessExecutionType" }
+ - { type: "null" }
+ timestamp:
+ type: [integer, "null"]
+ format: int64
+ description: When the execution was recorded, in milliseconds since
the epoch.
+ required: [processExecutionId, executionId]
+
DataStagingTaskRequest:
type: object
description: |