Skip to content

Commit 68cc1f9

Browse files
committed
feat!: baseline preparations (#1062)
(cherry picked from commit cf074d8)
1 parent e2f1e51 commit 68cc1f9

23 files changed

Lines changed: 676 additions & 709 deletions

.github/workflows/backport.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- closed
66
- labeled
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
backport:
1013
permissions:

.github/workflows/benchmarks.yml

Lines changed: 0 additions & 171 deletions
This file was deleted.

.github/workflows/docs-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
paths:
55
- docs/**
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
build:
912
permissions:

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- 'v*'
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
if: github.event_name == 'workflow_dispatch' || contains(github.ref, 'v5')

.github/workflows/nodejs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010

1111
name: CI
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
lint:
1518
permissions:

.github/workflows/stale.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
schedule:
44
- cron: '0 10 * * 0'
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
stale:
811
permissions:
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
id: Errors
3+
sidebar_position: 8
4+
---
5+
6+
## Errors
7+
8+
The following section aggregates all the error codes thrown from `Piscina` and an explanation of them
9+
10+
### Constructor
11+
12+
All errors thrown by `Piscina` follows are child of `PiscinaError` parent class.
13+
14+
- `name`: (`string`) Name of the error
15+
- `code`: (`string`) Error code. Prefixed with `PISCINA_ERR_*`
16+
- `message`: (`string | null`) Summary of the cause of the error
17+
- `cause`: (`string | null`) Root cause of the error.
18+
19+
### Error Codes
20+
21+
| Code | Description |
22+
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
23+
| PISCINA_ERR_ABORT | Indicates a task has been aborted. Seek for the `cause` property to find more about the root cause. |
24+
| PISCINA_ERR_TASK_QUEUE_LIMIT | Task queue is at limit. No more tasks are being enqueued. Listen to the `drain` and `needsDrain` event to continue submitting tasks |
25+
| PISCINA_ERR_THREAD_TERMINATION | Thread is being terminated. |
26+
| PISCINA_ERR_VALIDATION | Validation for given values has failed. Review the `message` property for more information |
27+
| PISCINA_ERR_NO_TASK_QUEUE_AVAILABLE | Task queue has been disabled and workers are at full capacity. Listen to `drain` and `needsDrain` events to continue submitting tasks |
28+
| PISCINA_ERR_CLOSE_TIMEOUT | Pool has exceeded timeout for closing up. Pool will be destroyed immediately. |

0 commit comments

Comments
 (0)