forked from Github/Axter-Stash
Added scheduler logic
This commit is contained in:
@@ -9,7 +9,7 @@ config = {
|
||||
# Enable to monitor changes in file system for modification flag. This option is NOT needed for Windows, because on Windows changes are triggered via CREATE, DELETE, and MOVE flags. Other OS may differ.
|
||||
"scanModified": False,
|
||||
# Timeout in seconds. This is how often it will check if another job (Task) is in the queue.
|
||||
"timeOut": 60, # Not needed when running in command line mode.
|
||||
"timeOut": 15, # Not needed when running in command line mode.
|
||||
# Enable to exit FileMonitor by creating special file in plugin folder\working
|
||||
"createSpecFileToExit": True,
|
||||
# Enable to delete special file imediately after it's created in stop process
|
||||
@@ -17,6 +17,24 @@ config = {
|
||||
# Enable to run metadata clean task after file deletion.
|
||||
"runCleanAfterDelete": False,
|
||||
|
||||
# Enable to turn on scheduler_task_list
|
||||
"turnOnScheduler": True,
|
||||
# Reoccurring scheduler task list. To activate schedule, change number from zero to the number of hours interval
|
||||
"task_reoccurring_scheduler": [
|
||||
# Example: To perform a 'Clean' task every 48 hours, change zero to 48
|
||||
# Hours Conversion: 24=Daily, 168=Weekly, 720=Monthly, 1440=Bi-Monthly, 2160=Quarterly, 8760=Yearly
|
||||
{"task" : "Clean", "hours" : 48}, # Maintenance Clean (every 2 days)
|
||||
{"task" : "Generate", "hours" : 168}, # Generated Content (Weekly)
|
||||
{"task" : "Backup", "hours" : 720}, # Backup Backup (Monthly)
|
||||
{"task" : "Scan", "hours" : 168}, # Library Scan (Weekly)
|
||||
# {"task" : "Create Tags", "hours" : 24},# Requires plugin [Path Parser]
|
||||
{"task" : "Create Tags", "pluginId" : "pathParser", "hours" : 24}, # Requires plugin [Path Parser]
|
||||
{"task" : "Auto Tag", "hours" : 0}, # !!! Not yet implemented!!!
|
||||
{"task" : "MyTaskHere", "pluginId" : "MyPluginId", "hours" : 0}, # Place holder for custom task.
|
||||
],
|
||||
# Maximum backups to keep. When scheduler is enabled, and the Backup runs, delete older backups after reaching maximum backups.
|
||||
"BackupsMax" : 6, # Not yet implemented!!!
|
||||
|
||||
# When enabled, if CREATE flag is triggered, DupFileManager task is called if the plugin is installed.
|
||||
"onCreateCallDupFileManager": False, # Not yet implemented!!!!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user