@arkstack/queue 0.19.5 → 0.19.6
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/README.md +3 -2
- package/dist/commands/QueueWorkCommand.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ await Queue.clear('emails')
|
|
|
52
52
|
ark queue:work # daemon on the default connection's default queue
|
|
53
53
|
ark queue:work redis --queue=emails
|
|
54
54
|
ark queue:work --queue=high,default # priority list: high first, then default
|
|
55
|
-
ark queue:work --queue=*
|
|
55
|
+
ark queue:work '--queue=*' # every queue on the connection (quote the *)
|
|
56
56
|
ark queue:work --once # process a single job and exit
|
|
57
57
|
ark queue:clear redis --queue=emails
|
|
58
58
|
```
|
|
@@ -67,7 +67,8 @@ ark queue:clear redis --queue=emails
|
|
|
67
67
|
- **`*`** works every queue on the connection. The `database` driver takes the
|
|
68
68
|
oldest due job across all queues; the `redis` driver discovers queues with
|
|
69
69
|
`SCAN` and works them round-robin. Combine it with names to prioritize some:
|
|
70
|
-
`--queue=webhook,*`.
|
|
70
|
+
`--queue=webhook,*`. Quote any `*` in a shell (`'--queue=webhook,*'`), or
|
|
71
|
+
zsh/bash may expand it as a glob.
|
|
71
72
|
|
|
72
73
|
Every queue that receives jobs needs a worker that lists it (or `*`), or its jobs
|
|
73
74
|
wait forever.
|
|
@@ -10,7 +10,7 @@ const reason = (error) => error instanceof Error ? error.message : String(error)
|
|
|
10
10
|
var QueueWorkCommand = class extends Command {
|
|
11
11
|
signature = `queue:work
|
|
12
12
|
{connection? : The queue connection to work. Defaults to the configured default.}
|
|
13
|
-
{--queue= : The queue(s) to process
|
|
13
|
+
{--queue= : The queue(s) to process. One name, a comma-separated priority list, or * for every queue.}
|
|
14
14
|
{--sleep=3 : Seconds to sleep when no job is available.}
|
|
15
15
|
{--max-jobs=0 : Stop after processing this many jobs (0 for unlimited).}
|
|
16
16
|
{--once : Process a single job and exit.}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/queue",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Queue module for Arkstack, providing a driver based queue transport and worker for background processing.",
|
|
6
6
|
"homepage": "https://arkstack.toneflix.net/guide/queue",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"./package.json": "./package.json"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@arkstack/common": "^0.19.
|
|
37
|
+
"@arkstack/common": "^0.19.6"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@h3ravel/musket": "^2.2.13",
|
|
41
41
|
"ioredis": "^5.4.1",
|
|
42
|
-
"@arkstack/
|
|
43
|
-
"@arkstack/
|
|
42
|
+
"@arkstack/contract": "^0.19.6",
|
|
43
|
+
"@arkstack/database": "^0.19.6"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"@arkstack/database": {
|