Skip to content

Commit 5a1ad89

Browse files
committed
Add process.env.GRAPHREDEX_COUNT
1 parent 6d07955 commit 5a1ad89

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

APIServer/src/racketRun.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default class ReductionRunner {
115115
path.join(this.datadir, lang.path),
116116
graph.name,
117117
`${lang._key}`,
118-
"1000",
118+
process.env.GRAPHREDEX_COUNT ?? "1000",
119119
],
120120
term,
121121
).then(({ output, errors }) => ({

Readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,15 @@ GRAPHREDEX_DOCKER=1 ./run -c
137137
_Note_: read [RedexServer/README.md](RedexServer/README.md) for security
138138
guidelines.
139139

140+
### Set reduction limit
141+
142+
You can set a limit on the number of reductions preformed by default by setting
143+
the environment variable `GRAPHREDEX_COUNT` (default: 1000).
144+
145+
```bash
146+
GRAPHREDEX_COUNT=100 ./run -c
147+
```
148+
140149
### Allow the use `(require redex)`
141150

142151
This allows you to use

0 commit comments

Comments
 (0)