Hi,
I'm wondering if someone can give me some pointers on implementing a scheduled task in SS. I've never worked with scheduled tasks before so I am very new to this.
The scenario is that I have a product class like so:
<?php
class Product extends Page {
    static $db = array(
        'Price' => 'Currency',
    );
    static $has_one = array();
    function updatePrice(){
        loader = new Product_Updater();
        etc.
    }
}
class Product_Controller extends Page_Controller {
}
class Product_Updater extends CSVBulkLoader {
}
?>
I have an updatePrice() method that goes through and updates price of products in the database from a CSV. This is all working fine. Now what I need to do is implement a scheduled task so that this process will run once a day at a specific time (say 2am).
How would I go about doing this? Would it be something like:
class MyTask extends DailyTask {
    function process() {
        Product::updatePrice();
    }
}
I'm not sure how exactly the task scheduler in SS works, how I would register tasks, set times, and check the output. I would appreciate any help and guidance with this.