]>
Commit | Line | Data |
---|---|---|
83be3106 MT |
1 | #!/usr/bin/python |
2 | ||
2c909128 | 3 | from . import base |
83be3106 MT |
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() |