Skip to content

Commit

Permalink
added an example cronjob to the demo which cleans up expired sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
dound committed May 6, 2010
1 parent f9cc1fb commit f09ff60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demo/cleanup_sessions.py
@@ -0,0 +1,3 @@
from gaesessions import delete_expired_sessions
while not delete_expired_sessions():
pass
4 changes: 4 additions & 0 deletions demo/cron.yaml
@@ -0,0 +1,4 @@
cron:
- description: daily session cleanup
url: /cleanup_sessions
schedule: every 24 hours

0 comments on commit f09ff60

Please sign in to comment.