Skip to content

Commit 580af7d

Browse files
author
FOLIOT Kevin
committed
Update doc for archive job
1 parent 4420471 commit 580af7d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/40-DeveloperGuide/30-WorkerService/50-ArchiveJob.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ sidebar_position: 1
55
# Archive Job (Worker Feature)
66
The archive job is a recurred task created to archive entities from database into flat text on a target directory and then delete them from database.
77

8-
## How it works
9-
Following descriptions will use defaults values of the archive job set in the BIA Framework.
10-
11-
1. Archive job is launched from Hangfire throught the Worker Service each day at 04:00 AM (GMT+1).
12-
2. Each injected implementation of `IArchiveService` related to a specific archivable entity (`IEntityArchivable` that inherits from `IEntityFixable`) of the dabatase will be runned one per one
8+
## How it works
9+
1. Archive job is launched from Hangfire Server throught the Worker Service each day at 04:00 AM (GMT+1).
10+
2. Each injected implementation of `IArchiveService` related to a specific archivable entity (`IEntityArchivable`) of the dabatase will be runned one per one
1311
3. The items to archive will be selected according to following rules from the related `ITGenericArchiveRepository` of the archive service :
1412
- Entity is fixed
1513
- Entity has not been already archived **OR** entity has already been archived and last fixed date has been updated since the last 24 hours
16-
4. The selected items are saved into compressed archive file to the target directory one per one (one file per item, overwritten). Each copy to the target directory is verified by an integrity comparison of checksum.
14+
4. The selected items are saved into compressed archive file to the target directory one per one : unique file per item, overwritten. Each copy to the target directory is verified by an integrity comparison of checksum.
1715
5. If enable, the items to delete from database will be only those archived more than last past year
1816

1917
## Configuration

0 commit comments

Comments
 (0)