Repeated Tasks
From Wikanual
Contents |
Repeated Tasks
INTERDUBS tasks allow you to kick of lengthy jobs and to have them executed in the background.
For some tasks it makes sense to have them run by the system automatically. The list of functions that can be run in this fashion is by the requirement of our users.
You can find
repeated tasks
in the utilities screen of your admin interface.
Common properties of repeated tasks and overall functionality
Each repeated task run get run until it gets removed. It is segment specific. If you have several segments with INTERDUBS then you need to set things up in each segment. The task will remember which admin user has created it. Admins can delete their own tasks, but not the ones of others. Root admins can delete the tasks of all other admins in the segment.
Task name
Each task has a name the indicates the action to be peformed. At this point the following tasks are available:
DELETE_EXPIRED1 removes files expired longer than 30 days, see Expired_file_cleanup DELETE_EXPIRED2 removes files expired longer than 7 days, see Expired_file_cleanup DELETE_EXPIRED3 removes files expired longer than 1 day, see Expired_file_cleanup ARCHIVE_EXPIRED Archive all expired files PVFTP_REMINDER_3_30 Send Plain Vanilla FTP reminder emails for accounts > 3GB not accessed in 30 days
Task Timing Method
You can specify the time to run a task in one of three methods. Select from the following:
repeat day of month repeat day of week repeat every X days
Repeated on given day
You can set tasks to get run at midnight of a given day. This day can be specified via a
day of the month (1-31)
or
day of the week (0-6) 0 being Sunday
respectively.
Every X days
When you select Every X days' then the time value you enter will be interpreted as the number of days in between tasks. To run something every day you would enter 1 here.
Mechanism
The repeated task will get inserted into the INTERDUBS task list of your segment. When it will actually be run might depend on the system load. You can see the status of submitted tasks at your tasks list.
Tasks
Cleanup of expired files
INTERDUBS can automatically clean up expired files. See Expired_file_cleanup for details. The 3 tasks differ in age of the expiration needed for files to be cleaned up.
Archive expired files
INTERDUBS can archive expired files. The system will use a special Plain vanilla ftp account as a target. The system automatically creates this account if needed. Its name is your segment name followed by _archive.
If your segment would be called example then this account would be called
example_archive
Aside from being created automatically on demand this account can be used normally as any other Plain vanilla ftp account.
Plain Vanilla Reminders
INTERDUBS Plain vanilla ftp makes it very easy to set up a new account and to share details with your collaborators.
Reminders can be sent with this function to the account creators. They will alert them when an account has not been used for 30 days and if the contain more than 3GB.