Blame doc/install_crons.rst

Pierre-Yves Chibon 0e8711
Cron Jobs
Pierre-Yves Chibon 0e8711
=========
Pierre-Yves Chibon 0e8711
Pierre-Yves Chibon 0e8711
Some actions in pagure are meant to the run via a cron job.
Pierre-Yves Chibon 0e8711
Pierre-Yves Chibon 0e8711
Pierre-Yves Chibon 0e8711
API key expiration reminder
Pierre-Yves Chibon 0e8711
---------------------------
Pierre-Yves Chibon 0e8711
Pierre-Yves Chibon 0e8711
One of the cron job sending reminder about API keys that are about to expire.
Pierre-Yves Chibon 0e8711
It will send an email 10 days, then 5 days and finally the day before the
Pierre-Yves Chibon 0e8711
key expires to the person who has created.
Pierre-Yves Chibon 0e8711
Pierre-Yves Chibon 0e8711
The cron job can be found in the sources in: ::
Pierre-Yves Chibon 0e8711
Pierre-Yves Chibon 0e8711
    files/api_key_expire_mail.py
Pierre-Yves Chibon 0e8711
Pierre-Yves Chibon 0e8711
In the RPM it is installed in: ::
Pierre-Yves Chibon 0e8711
Pierre-Yves Chibon 0e8711
    /usr/share/pagure/api_key_expire_mail.py
Pierre-Yves Chibon 0e8711
Pierre-Yves Chibon 0e8711
This cron job is meant to be run daily using a syntax similar to:
Pierre-Yves Chibon 0e8711
Pierre-Yves Chibon 0e8711
::
Pierre-Yves Chibon 0e8711
Pierre-Yves Chibon 0e8711
    10 0 * * * root python /usr/share/pagure/api_key_expire_mail.py
Pierre-Yves Chibon 0e8711
Pierre-Yves Chibon 0e8711
which will make the script run at 00:10 every day.