[Commits] act-server branch master updated.
C. Scott Ananian
cscott at laptop.org
Mon Jan 12 13:02:02 EST 2009
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "/home/cscott/public_git/act-server".
The branch, master has been updated
via 74a3817bf48a890ec5ddef4970542e13419f3cce (commit)
from 9af61d05833ea87ac3023e9a4bd7c206794d704f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
scripts/jefferson-airplane.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 74a3817bf48a890ec5ddef4970542e13419f3cce
Author: C. Scott Ananian <cscott at laptop.org>
Date: Mon Jan 12 13:01:18 2009 -0500
Service requests newest first to maintain responsiveness.
diff --git a/scripts/jefferson-airplane.py b/scripts/jefferson-airplane.py
index b261ba4..f753f87 100755
--- a/scripts/jefferson-airplane.py
+++ b/scripts/jefferson-airplane.py
@@ -114,7 +114,11 @@ def main():
fd = serial_open(SERIAL_DEVICE_FALLBACK, BAUD_RATE)
try:
link_up_leases() # take care of leases we already have
- for rl in RequestedLease.objects.filter(lease__isnull=True):
+ # we limit to 1000 at a bunch, and order newest first, so
+ # that we are responsive to new dev key requests even if we've
+ # got a big backlog.
+ for rl in RequestedLease.objects.filter(lease__isnull=True)\
+ .order_by('-request__req_date')[:1000]:
try:
send_one(fd, {'rlid': rl.id,
'sn': rl.laptop.serial_number,
-----------------------------------------------------------------------
--
/home/cscott/public_git/act-server
More information about the Commits
mailing list