Skip to content

Commit 8e9c4d5

Browse files
committed
docs: update docs for the backgorund jobs plugin
AdminForth/1721/background-jobs-should-be-clea
1 parent 45f9f36 commit 8e9c4d5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

adminforth/documentation/docs/tutorial/09-Plugins/23-background-jobs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ BackgroundJobsPlugin adds a durable background job system to AdminForth. Jobs ar
99

1010

1111
## Setup
12-
12+
> ‼️ Note, that before deploying this plugin, you should create volume for the level db and pass is as `levelDbPath` param, so background jobs will be saved between redeploys
1313
First, install the plugin:
1414
```bash
1515
pnpm i @adminforth/background-jobs
@@ -124,6 +124,7 @@ export default {
124124
statusField: 'status',
125125
nameField: 'name',
126126
jobHandlerField: 'job_handler_name',
127+
levelDbPath: process.env.NODE_ENV === production ? '/stores/background_job_plugin' : './background_jobs',
127128
})
128129
]
129130
} as AdminForthResourceInput;

0 commit comments

Comments
 (0)