Sounds like a pun, but TaskDatabase does this task. :)
When you set the archive date for an item, an entry about it falls into the task table of the main database. Subsequently, TaskDatabaseAgent iterates this table at a given frequency and performs tasks. The frequency is determined as usual in the <scheduling> section of the web.config file.
The message "The item has been archived ..." should not confuse you - it is displayed after reaching the date / time. But the item will be archived the next time the scheduling agent starts the task database.
Play with the planning settings and you will see how it works.
Yan sklyarenko
source share