Closed abma closed 13 years ago
some needed cron-jobs:
-check if all files are uploaded to mirrors (for example, if a new mirror is added or an upload job failed) -check if all metadata files are existent (to allow re-creation) -move non-working files into an archive -...
uhm, this is not really needed. a crontab-entry like this is already possible:
/20 * * * \ ~/upq/upq-cly.py somejob
just an idea:
add a function cron() to each job which is called at some time.
params could be something like a timestamp when it was last_run. this would allow to run it only every n-times.
this function then is called regulary every hour for each module.
the cron-jobs should be something like a time-intensive test, similar to checks (but these should be easier as they run non-threaded / blocks the call)
imo the code has to be in the same (job-)file to allow easy code-sharing