File tree Expand file tree Collapse file tree 2 files changed +33
-2
lines changed
Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -121,13 +121,22 @@ nuxi dev
121121node .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
130136npx nuxt-processor dev
137+
138+ # run only specific workers
139+ npx nuxt-processor dev --workers basic,hello
131140```
132141
133142Notes:
@@ -155,6 +164,12 @@ nuxi build
155164node .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.
Original file line number Diff line number Diff line change @@ -80,12 +80,22 @@ nuxi dev
8080node .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
8591Use the CLI to run workers with file watching and restarts:
8692
8793``` bash
94+ # runs all workers
8895npx nuxt-processor dev
96+
97+ # run only specific workers
98+ npx nuxt-processor dev --workers basic,hello
8999```
90100
91101Notes:
@@ -113,6 +123,12 @@ nuxi build
113123node .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
118134See the dedicated page: [ Bull Board] ( /bull-board )
You can’t perform that action at this time.
0 commit comments