Skip to content

Commit f66a7c2

Browse files
committed
update docs
1 parent 866037b commit f66a7c2

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,22 @@ nuxi dev
121121
node .nuxt/dev/workers/index.mjs
122122
```
123123

124+
By default all workers run. To run only specific workers, pass the `--workers` flag with a comma-separated list of worker names:
125+
126+
```bash
127+
node .nuxt/dev/workers/index.mjs --workers basic,hello
128+
```
129+
124130
### CLI
125131

126-
A simple CLI is provided to run workers in development.
132+
A simple CLI is provided to run workers in development (with file watching and restarts).
127133

128134
```bash
129-
# from your project root
135+
# from your project root – runs all workers
130136
npx nuxt-processor dev
137+
138+
# run only specific workers
139+
npx nuxt-processor dev --workers basic,hello
131140
```
132141

133142
Notes:
@@ -155,6 +164,12 @@ nuxi build
155164
node .output/server/workers/index.mjs
156165
```
157166

167+
To run only specific workers in production:
168+
169+
```bash
170+
node .output/server/workers/index.mjs --workers basic,hello
171+
```
172+
158173
## Bull Board
159174

160175
[Bull Board](https://github.com/felixmosh/bull-board) is an excellent UI for watching your queues, you can follow the setup in the playground to use it.

docs/getting-started.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,22 @@ nuxi dev
8080
node .nuxt/dev/workers/index.mjs
8181
```
8282

83+
By default all workers run. To run only specific workers, pass the `--workers` flag with a comma-separated list of worker names:
84+
85+
```bash
86+
node .nuxt/dev/workers/index.mjs --workers basic,hello
87+
```
88+
8389
### CLI
8490

8591
Use the CLI to run workers with file watching and restarts:
8692

8793
```bash
94+
# runs all workers
8895
npx nuxt-processor dev
96+
97+
# run only specific workers
98+
npx nuxt-processor dev --workers basic,hello
8999
```
90100

91101
Notes:
@@ -113,6 +123,12 @@ nuxi build
113123
node .output/server/workers/index.mjs
114124
```
115125

126+
To run only specific workers in production:
127+
128+
```bash
129+
node .output/server/workers/index.mjs --workers basic,hello
130+
```
131+
116132
## Bull Board
117133

118134
See the dedicated page: [Bull Board](/bull-board)

0 commit comments

Comments
 (0)