You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/40-DeveloperGuide/30-WorkerService/50-ArchiveJob.md
+4-6
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,13 @@ sidebar_position: 1
5
5
# Archive Job (Worker Feature)
6
6
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.
7
7
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
13
11
3. The items to archive will be selected according to following rules from the related `ITGenericArchiveRepository` of the archive service :
14
12
- Entity is fixed
15
13
- 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.
17
15
5. If enable, the items to delete from database will be only those archived more than last past year
0 commit comments