Is there any module that let you put "actions" in a queue and then process the queue during hook_cron in D5?
Ideally something will put an action in the queue (say a function call + serialized parameters in a text field), the module hook_cron should pick it up, run it, delete it from the queue accordingly to the result of the action and log any failure.