Skip to content

Commit 721f1ad

Browse files
committed
Remove redundant section about custom workers
1 parent 731044c commit 721f1ad

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

docs/src/advanced.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The `init_code` is evaluated in each test's sandbox module, so all definitions a
8080

8181
## Custom Workers
8282

83-
For tests that require specific environment variables or Julia flags, you can use the `test_worker` keyword argument to assign tests to custom workers:
83+
For tests that require specific environment variables or Julia flags, you can use the `test_worker` keyword argument to [`runtests`](@ref) to assign tests to custom workers:
8484

8585
```julia
8686
using ParallelTestRunner
@@ -137,25 +137,6 @@ runtests(MyPackage, args)
137137

138138
Custom flags are stored in the `custom` field of the `ParsedArgs` object, with values of `nothing` (not set) or `Some(value)` (set, with optional value).
139139

140-
## Manual Worker Management
141-
142-
For advanced use cases, you can manually create workers:
143-
144-
```julia
145-
using ParallelTestRunner
146-
147-
# Add a single worker with custom configuration
148-
worker = addworker(
149-
env = ["CUSTOM_VAR" => "value"],
150-
exeflags = ["--check-bounds=no"]
151-
)
152-
153-
# Add multiple workers
154-
workers = addworkers(4; env = ["THREADS" => "1"])
155-
```
156-
157-
Workers created this way can be used with the `test_worker` function or for other distributed computing tasks.
158-
159140
### Interactive use
160141

161142
Arguments can also be passed via the standard `Pkg.test` interface for interactive control. For example, here is how we could run the subset of tests that start with the testset name "MyTestsetA" in i) verbose mode, and ii) with default threading enabled:

0 commit comments

Comments
 (0)