Housekeeping - Scheduler
Housekeeping scheduler is a component whose purpose is to delete input files older than a configurable number of days based on the last modification time. The files are polled from a configurable location path.
Scenario:
When a file older than some days is found in the input directory, the file is deleted from the path.
Configuration Properties:
Config |
Type |
Default value |
Comment |
|
String |
'0 0 12 * * ?' |
A command for a job that is to be executed at a specified time. |
|
String |
'src/main/resources' |
Specific path where files are located. |
|
Integer |
100 |
The number of days from the last modification time. |
|
String |
default-id |
Property which identifies the housekeeping/Debulker application instance. If multiple Debulker applications share the same database, this can be used to associate housekeeping scheduler jobs to a specific application instance. |
|
Boolean |
true |
Property that determines whether the housekeeping module will send a command to rehydrate all persistent scheduler jobs. Depending on the other modules bundled with the debulker module, you may choose to disable this if you have another module in your application which you would like to be responsible for rehydrating persistent scheduler jobs. |