]> git.ipfire.org Git - people/jschlag/pbs.git/blob - src/manager/sessions.py
Use autotools
[people/jschlag/pbs.git] / src / manager / sessions.py
1 #!/usr/bin/python
2
3 import base
4
5 class 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()