@adonis-agora/durable 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/assets/spa/assets/index-BCFDK6g_.js +16 -0
- package/dist/assets/spa/assets/index-BCFDK6g_.js.map +1 -0
- package/dist/assets/spa/index.html +1 -1
- package/dist/providers/dashboard_provider.d.ts.map +1 -1
- package/dist/providers/dashboard_provider.js +5 -0
- package/dist/providers/dashboard_provider.js.map +1 -1
- package/dist/providers/durable_provider.d.ts.map +1 -1
- package/dist/providers/durable_provider.js +17 -0
- package/dist/providers/durable_provider.js.map +1 -1
- package/dist/src/dashboard/index.d.ts +1 -1
- package/dist/src/dashboard/index.js +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/transports/queue-mock-adapter.d.ts +25 -8
- package/dist/src/transports/queue-mock-adapter.d.ts.map +1 -1
- package/dist/src/transports/queue-mock-adapter.js +61 -28
- package/dist/src/transports/queue-mock-adapter.js.map +1 -1
- package/dist/src/transports/queue.d.ts +22 -2
- package/dist/src/transports/queue.d.ts.map +1 -1
- package/dist/src/transports/queue.js +40 -10
- package/dist/src/transports/queue.js.map +1 -1
- package/package.json +4 -4
- package/dist/assets/spa/assets/index-BWOUFFYv.js +0 -16
- package/dist/assets/spa/assets/index-BWOUFFYv.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @adonis-agora/durable
|
|
2
2
|
|
|
3
|
+
## 0.45.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#312](https://github.com/DavideCarvalho/adonis-agora-durable/pull/312) [`1f49991`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/1f49991ed7fe3c7388d4040e75dad0fd04d9047a) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Support `@adonisjs/queue` 0.7
|
|
8
|
+
|
|
9
|
+
The `@adonisjs/queue` peer range is now `^0.6.0 || ^0.7.0`. Both versions are tested.
|
|
10
|
+
|
|
11
|
+
`@adonisjs/queue` 0.7 runs on `@boringnode/queue` 0.9, which changed the adapter contract that the `queue` transport uses directly. Every claim now carries a lease token, and `completeJob`, `retryJob` and `failJob` take that lease instead of the job id. The transport used to pass the job id. On 0.7 that finished no job: Redis left the job `active` without saying anything, and the database driver threw on every call. The stalled sweep would then deliver the job again, so every step would have run twice. The transport now reads the contract from each claim. It uses the lease when there is one and the job id on 0.6. Jobs that stalled more than `maxStalledCount` times are now failed by the transport, because 0.7 gives them back to the caller instead of failing them itself.
|
|
12
|
+
|
|
13
|
+
The durable provider (and the dashboard provider's diagnostics hook) no longer build the engine when the app boots in `warmup` mode. That build opened the transport and store connections. `node ace codegen` and other warmup commands now exit instead of hanging on a queue, Redis or database connection that nothing closes. This is the same fix `@adonisjs/queue` 0.7 made for its own manager. The engine is still built on first use.
|
|
14
|
+
|
|
15
|
+
Upgrading an app to `@adonisjs/queue` 0.7:
|
|
16
|
+
|
|
17
|
+
- Stop every process on the old version first, then run `node ace queue:migrate` before you start the new ones (see the [`@adonisjs/queue` 0.7 upgrade notes](https://github.com/adonisjs/queue/releases/tag/v0.7.0)). Durable stores no schedules or dedup ids in the queue backend, so its own queues need nothing else.
|
|
18
|
+
- `defaultJobOptions` (`maxRetries`, `retry`, `timeout`, `failOnTimeout`) and `worker.unknownJobRetries` do not apply to durable's jobs. `queue:work` never runs them, and step retries, timeouts and backoff still come from the step options.
|
|
19
|
+
- Don't point `queue:work` at durable's `<prefix>:…` queues.
|
|
20
|
+
|
|
3
21
|
## 0.44.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|