[Pkg-debile-commits] [debile-master] 45/126: makes it do more
Sylvestre Ledru
sylvestre at alioth.debian.org
Mon Aug 19 14:56:12 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch scan-build-html
in repository debile-master.
commit 095c77d52c88d6698b0bca1c4ed314f74c678e9a
Author: Paul Tagliamonte <tag at pault.ag>
Date: Wed May 29 22:44:50 2013 -0400
makes it do more
---
scripts/lucy-janitor | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/scripts/lucy-janitor b/scripts/lucy-janitor
index ba4080a..6289bc3 100755
--- a/scripts/lucy-janitor
+++ b/scripts/lucy-janitor
@@ -1,13 +1,19 @@
#!/usr/bin/env python
from lucy.models.job import Job
+from lucy.cli.incoming import main as process_incoming
import datetime as dt
import schedule
import time
-def job():
+def cron():
+ process_incoming()
+ cleanup_jobs()
+
+
+def cleanup_jobs():
length = dt.timedelta(hours=2)
jobs = Job.dead_jobs(length)
for job in jobs:
@@ -17,7 +23,7 @@ def job():
print("Pushing %s back into the pool" % (job['_id']))
-schedule.every(5).minutes.do(job)
+schedule.every(30).seconds.do(cron)
while True:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git
More information about the Pkg-debile-commits
mailing list