Skip to content

Commit

Permalink
Update task duration field
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Jul 5, 2024
1 parent 2643bdc commit e5cde39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion typespec/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ namespace Service {
time_created: timestamp;
time_started?: timestamp;
time_ended?: timestamp;
duration?: DurationKnownEncoding.seconds;
// TODO: https://github.com/artefactual/archivematica/blob/c757adeec61bfdb7dfd530a7db9821af4b2af55e/src/dashboard/src/components/helpers.py#L162-L169
duration: DurationKnownEncoding.seconds;
}
}

Expand Down
1 change: 1 addition & 0 deletions typespec/tsp-output/@typespec/openapi3/openapi.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,7 @@ components:
- file_uuid
- exit_code
- time_created
- duration
properties:
uuid:
$ref: '#/components/schemas/uuid'
Expand Down

0 comments on commit e5cde39

Please sign in to comment.