Add Retry

Signed-off-by: solimant <solimant@users.noreply.github.com>
This commit is contained in:
solimant
2024-10-07 23:52:02 +00:00
parent 799910c6cc
commit 1c38f059a9
2 changed files with 24 additions and 3 deletions
@@ -737,9 +737,10 @@ describe('scaffolderPlugin', () => {
});
// Retry the task by ID
response = await request(server).post(
`/api/scaffolder/v2/tasks/${taskId}/retry`,
);
response = await request(server)
.post(`/api/scaffolder/v2/tasks/${taskId}/retry`)
.send({});
expect(response.status).toBe(201);
expect(response.body).toMatchObject({ id: taskId });
@@ -696,3 +696,23 @@ paths:
- JWT: []
parameters:
- $ref: '#/components/parameters/taskId'
/v2/tasks/{taskId}/retry:
post:
operationId: Retry
description: Starts the task again from the point where it failed.
responses:
'201':
description: Ok
content:
application/json:
schema:
type: object
properties:
id:
type: string
security:
- {}
- JWT: []
parameters:
- $ref: '#/components/parameters/taskId'