spring / upq

extracts metadata of game and map files of the spring engine
https://springfiles.springrts.com/
GNU General Public License v3.0
2 stars 5 forks source link

add something like a cron functionality #16

Closed abma closed 13 years ago

abma commented 13 years ago

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

abma commented 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 -...

abma commented 13 years ago

uhm, this is not really needed. a crontab-entry like this is already possible:

/20 * * * \ ~/upq/upq-cly.py somejob