summaryrefslogtreecommitdiffstats
path: root/patchwork/bin/patchwork-cron.py
blob: 148e97c764c2177007842c55a407fcba00031f72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python

import sys
from patchwork.utils import send_notifications, do_expiry

def main(args):
    errors = send_notifications()
    for (recipient, error) in errors:
        print "Failed sending to %s: %s" % (recipient.email, ex)

    do_expiry()

if __name__ == '__main__':
    sys.exit(main(sys.argv))