extras-buildsys/server ArchJob.py,1.16.2.8,1.16.2.9

Daniel Williams (dcbw) fedora-extras-commits at redhat.com
Thu Feb 23 19:14:57 UTC 2006


Author: dcbw

Update of /cvs/fedora/extras-buildsys/server
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2116/server

Modified Files:
      Tag: STABLE_0_4
	ArchJob.py 
Log Message:
Increase # of download tries to 10, and import OpenSSL to fix traceback in die()


Index: ArchJob.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/server/ArchJob.py,v
retrieving revision 1.16.2.8
retrieving revision 1.16.2.9
diff -u -r1.16.2.8 -r1.16.2.9
--- ArchJob.py	16 Feb 2006 18:38:55 -0000	1.16.2.8
+++ ArchJob.py	23 Feb 2006 19:14:49 -0000	1.16.2.9
@@ -22,6 +22,7 @@
 import os
 import threading
 import urllib
+import OpenSSL
 from plague import FileDownloader
 from plague import CommonErrors
 
@@ -202,8 +203,8 @@
         if status == 'done':
             dl_dict[DL_STATUS] = STATUS_DONE
         elif status == 'failed':
-            # Retry the download up to 5 times, then fail it
-            if dl_dict[DL_RETRIES] >= 5:
+            # Retry the download up to 10 times, then fail it
+            if dl_dict[DL_RETRIES] >= 10:
                 dl_dict[DL_STATUS] = STATUS_ERROR
             else:
                 print "%s (%s/%s): Failed to retrieve %s (attempt %d), trying again..." % (self.par_job.uid,




More information about the scm-commits mailing list