Skip to content

Commit 54bf9e8

Browse files
committed
docs: update docs for the background jobs
1 parent 812da5c commit 54bf9e8

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,25 @@ export default {
123123
} as AdminForthResourceInput;
124124
```
125125

126+
Then make add table schema:
127+
128+
```
129+
model jobs {
130+
id String @id
131+
created_at DateTime
132+
finished_at DateTime?
133+
started_by String
134+
name String
135+
state String
136+
progress String
137+
status String
138+
job_handler_name String
139+
}
140+
```
141+
142+
and make migration
143+
144+
126145
## Usage
127146
The plugin saves tasks and keeps executing them even after a server restart, so you should register job task handlers at the start of the AdminForth application.
128147

@@ -135,7 +154,7 @@ The plugin saves tasks and keeps executing them even after a server restart, so
135154
...
136155

137156
resources: [
138-
157+
139158
...
140159

141160
//diff-add

0 commit comments

Comments
 (0)