extras-buildsys/client client.py,1.14,1.15
Daniel Williams (dcbw)
fedora-extras-commits at redhat.com
Fri Jul 22 21:35:29 UTC 2005
- Previous message (by thread): extras-buildsys/builder builder.py,1.24,1.25
- Next message (by thread): extras-buildsys/server ArchJob.py, 1.6, 1.7 BuildMaster.py, 1.18, 1.19 PackageJob.py, 1.12, 1.13 User.py, 1.4, 1.5 UserInterface.py, 1.25, 1.26 main.py, 1.10, 1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: dcbw
Update of /cvs/fedora/extras-buildsys/client
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23772/client
Modified Files:
client.py
Log Message:
2005-07-22 Dan Williams <dcbw at redhat.com>
* builder/builder.py
- Fix traceback when killing jobs on shutdown of the builder
* client/client.py
- Add a job detail command
* server/ArchJob.py
- Store job start and end times in the database
* server/BuildMaster.py
- Remove JobsQuery class, no longer used
- Store more info in the job database to support web front end features
- Don't try to restart jobs in the 'initialize' state since they'll
get restarted anyway
* server/PackageJob.py
- Generalize log URL construction so it can be accessed from the user interface
- Pass more job info to the BuildMaster to be written to the DB
- Don't use tempfile.mkdtemp(), it seems to have issues
- Return 30 lines of log rather than 20
* server/User.py
- Grab a new connection to the database on every access, so that
user addition/modification can happen when the server is running
* server/UserInterface.py
- Add a "job detail" interface that returns information about a single
specific job
* server/main.py
- Greatly reduce buffer size for the logfile, now it actually gets written
out in a timely fashion
Index: client.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/client/client.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- client.py 20 Jul 2005 16:10:39 -0000 1.14
+++ client.py 22 Jul 2005 21:35:27 -0000 1.15
@@ -141,6 +141,20 @@
except IOError:
pass
+def detail_job(server, email, jobid):
+ """
+ Get a single job's details
+ """
+ try:
+ (err, msg, jobrec) = server.detail_job(email, jobid)
+ except socket.error, e:
+ print "Error connecting to build server: '%s'" % e
+ return
+ if err == -1:
+ print msg
+ else:
+ print jobrec
+
def kill(server, email, jobid):
"""
@@ -293,6 +307,8 @@
print e.message
elif cmd == 'list':
list_jobs(server, sys.argv[2:])
+ elif cmd == 'detail':
+ detail_job(server, email, sys.argv[2])
elif cmd == 'kill':
if len(sys.argv) < 3:
print "Error: need a job UID to kill"
- Previous message (by thread): extras-buildsys/builder builder.py,1.24,1.25
- Next message (by thread): extras-buildsys/server ArchJob.py, 1.6, 1.7 BuildMaster.py, 1.18, 1.19 PackageJob.py, 1.12, 1.13 User.py, 1.4, 1.5 UserInterface.py, 1.25, 1.26 main.py, 1.10, 1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list