bitpiston / oyster

A Perl web application framework.
Other
3 stars 1 forks source link

IPC cron/periodic-like function #28

Closed einkoro closed 12 years ago

einkoro commented 12 years ago

Implement a cron/periodic-like function for IPC. Useful to run regular cleanups on databases and temporary files.

ipc::do_periodic?

einkoro commented 12 years ago

14:20:19 ImustDIE: for periodics 14:20:31 ImustDIE: make it just like ipc:do, that it accepts a string to eval, but you also pass a time 14:20:37 ImustDIE: create a new table to hold periodic jobs 14:20:43 ImustDIE: only insert them if they are not in there already 14:20:59 ImustDIE: the table also needs to store the last time that periodic was executed 14:21:34 ImustDIE: daemons need to occasionally (NOT EVERY REQUEST, and at the end of the request, after everything else, hook_cleanup i think) check the periodic table and check if a job needs doing 14:21:44 ImustDIE: update the time last done BEFORE doing it, so that other daemons don't do the same thing

einkoro commented 12 years ago

Implemented in r231