===== Scheduled Reminders =====
==== Overview ====
Let's face it; some developers just aren't that reliable, and often need to be regularly reminded about their tasks. You can use the Reminders Tab for this.
While viewing a task, click the Reminders Tab heading, and you will see a list of existing reminders. To send out a regular reminder to someone, use the form provided. Select the developer's name, enter the frequency of time you wish to have the reminders sent, and type a short message. A sample message is provided, as shown in the image on the right.
{{add_reminder.jpg}}
==== Enabling reminder support in Flyspray ====
Starting with the 0.9.9 release, Flyspray has a background daemon to regularly trigger various scripts. You need two things to make it work:
* //reminder_daemon// must be set to "1" in [[:flyspray.conf.php]].
* it must be possible for the script to run forever. So //set_time_limit()// must not be disabled.
If you can't use the background reminder daemon for whatever reason, you need to activate the schedule.php regularly another way. One method would be using a task scheduler (like 'cron') to make a download program (like 'wget') retrieve the file every five or ten minutes. You don't need to save it anywhere, just send it to the bit bucket. Merely retrieving the file causes it to run, and thus, send the reminders out.
If you have the ability to use cron on your system, you might automate wget with a command such as this:
wget -q -O /path/to/logfile.txt http://www.mydomain/flyspray/schedule.php
Note that you have to modify the file before you can use it that way. while(true) needs to be changed to while(false). Also, you can only run this file from a //local// machine.
\\
To easily activate schedule.php from your web server itself, go to URL "http://127.0.0.1/.../flyspray/schedule.php" in a web browser / client where ... denotes whatever sub-directories your flyspray installation might be located. If you do not receive the message "You are not authorized to start ..." and are presented with nothing in your web browser then it means that you have successfully started the notification daemon and notifications should go out as expected. You can just close your web browser down or click stop in your web browser since the PHP script should run indefinitely on the web server as long as it is configured properly.