File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,12 @@ export const env = createEnv({
61
61
ENABLE_HTTPS : boolSchema ( "false" ) ,
62
62
HTTPS_PASSPHRASE : z . string ( ) . default ( "thirdweb-engine" ) ,
63
63
TRUST_PROXY : z . boolean ( ) . default ( false ) ,
64
+ // Sets the max amount of memory Redis can use.
65
+ // "0" means use all available memory.
64
66
REDIS_MAXMEMORY : z . string ( ) . default ( "0" ) ,
65
- // TRANSACTION_HISTORY_COUNT defines the max transaction details to keep .
66
- // In testing, storing about 300k consumes 900mb memory.
67
- TRANSACTION_HISTORY_COUNT : z . coerce . number ( ) . default ( 300_000 ) ,
67
+ // Sets the number of recent transactions to store. Older transactions are pruned periodically .
68
+ // In testing, 100k transactions consumes ~300mb memory.
69
+ TRANSACTION_HISTORY_COUNT : z . coerce . number ( ) . default ( 100_000 ) ,
68
70
CLIENT_ANALYTICS_URL : z
69
71
. union ( [ UrlSchema , z . literal ( "" ) ] )
70
72
. default ( "https://c.thirdweb.com/event" ) ,
Original file line number Diff line number Diff line change @@ -3,17 +3,18 @@ import { env } from "../../utils/env";
3
3
import { logger } from "../../utils/logger" ;
4
4
5
5
export const defaultJobOptions : JobsOptions = {
6
+ // Does not retry by default. Queues must explicitly define their own retry count and backoff behavior.
6
7
attempts : 0 ,
7
8
// Purges successful jobs.
8
9
removeOnComplete : {
9
10
age : 7 * 24 * 60 * 60 ,
10
11
count : 10_000 ,
11
12
} ,
12
13
// Purge failed jobs.
13
- // These limits should be sufficiently high to debug/ retry.
14
+ // These limits are higher to debug or retry failed jobs .
14
15
removeOnFail : {
15
16
age : 7 * 24 * 60 * 60 ,
16
- count : 100_000 ,
17
+ count : 25_000 ,
17
18
} ,
18
19
} ;
19
20
You can’t perform that action at this time.
0 commit comments