Skip to content

Commit

Permalink
vicky/docs: add lock documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kek5chen committed Apr 24, 2024
1 parent 8589f4d commit 5ae5a53
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions vicky/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,47 @@ This API is an JSON API, therefore you need to set `Content-Type` header accordi
}
```

#### With Locks

```json
{
"display_name": "Deployment 3",
"locks": [
{
"name": "anything",
"type": "WRITE"
}
],
"flake_ref": {
"flake": "gitlab:wobcom/example",
"args": []
}
}
```

```json
{
"display_name": "Deployment 3",
"locks": [
{
"name": "also_anything",
"type": "READ"
},
{
"name": "also_anything",
"type": "READ"
},
{
"name": "another_thing",
"type": "WRITE"
}
],
"flake_ref": {
"flake": "gitlab:wobcom/example",
"args": []
}
}
```
### Claim A Task

`POST /api/v1/tasks/claim` claims the next new task available.
Expand Down

0 comments on commit 5ae5a53

Please sign in to comment.