]> git.ipfire.org Git - people/jschlag/pbs.git/blame - src/manager/sessions.py
Cleanup uploads a few times a day
[people/jschlag/pbs.git] / src / manager / sessions.py
CommitLineData
83be3106
MT
1#!/usr/bin/python
2
2c909128 3from . import base
83be3106
MT
4
5class SessionsCleanupEvent(base.Event):
6 """
7 Cleans up sessions that are not valid anymore.
8 Keeps the database smaller.
9 """
10 # Run once in an hour.
11 interval = 3600
12
13 # Rather unimportant when this runs.
14 priority = 10
15
16 def run(self):
17 self.pakfire.sessions.cleanup()