Skip to content

Commit

Permalink
Note on periodic sweeps
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Mar 31, 2016
1 parent 83f3b28 commit be39bcd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ Before you run the server in development mode, make sure you have Postgres serve
$ python runserver.py
## Periodic jobs
Hasjob maintains user sessions that expire after half hour of inactivity. You need to install a cron script to sweep for expired sessions. Use `crontab -e` as the user account running Hasjob and add:
*/10 * * * * cd /path/to/hasjob; python manage.py sweep -e dev
Switch to `production` in a production environment.
## Testing
Tests are written in [CasperJS](http://casperjs.org/).
Expand Down

0 comments on commit be39bcd

Please sign in to comment.