Add debug logging to cache lookup
This commit is contained in:
21
README.md
21
README.md
@@ -36,9 +36,12 @@ Interactive docs: http://localhost:8100/docs
|
||||
| POST | `/runs` | Start a rendering run |
|
||||
| GET | `/runs` | List all runs |
|
||||
| GET | `/runs/{run_id}` | Get run status |
|
||||
| DELETE | `/runs/{run_id}` | Delete a run |
|
||||
| GET | `/cache` | List cached content hashes |
|
||||
| GET | `/cache/{hash}` | Download cached content |
|
||||
| DELETE | `/cache/{hash}` | Delete cached content |
|
||||
| POST | `/cache/import?path=` | Import local file to cache |
|
||||
| POST | `/cache/upload` | Upload file to cache |
|
||||
| GET | `/assets` | List known assets |
|
||||
|
||||
### Start a run
|
||||
@@ -55,6 +58,24 @@ curl -X POST http://localhost:8100/runs \
|
||||
curl http://localhost:8100/runs/{run_id}
|
||||
```
|
||||
|
||||
### Delete a run
|
||||
|
||||
```bash
|
||||
curl -X DELETE http://localhost:8100/runs/{run_id} \
|
||||
-H "Authorization: Bearer <token>"
|
||||
```
|
||||
|
||||
Note: Failed runs can always be deleted. Completed runs can only be deleted if their outputs haven't been published to L2.
|
||||
|
||||
### Delete cached content
|
||||
|
||||
```bash
|
||||
curl -X DELETE http://localhost:8100/cache/{hash} \
|
||||
-H "Authorization: Bearer <token>"
|
||||
```
|
||||
|
||||
Note: Items that are inputs/outputs of runs, or published to L2, cannot be deleted.
|
||||
|
||||
## Storage
|
||||
|
||||
- **Cache**: `~/.artdag/cache/` (content-addressed files)
|
||||
|
||||
Reference in New Issue
Block a user