extras-buildsys/server ArchJob.py,1.20,1.21

Daniel Williams (dcbw) fedora-extras-commits at redhat.com
Fri Nov 18 14:34:01 UTC 2005


Author: dcbw

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

Modified Files:
	ArchJob.py 
Log Message:
2005-11-18  Dan Williams  <dcbw at redhat.com>

    * server/ArchJob.py
        - Log failed downloads before retrying
        - Retry downloads from builder up to 5 times, not 3

    * builder/builder.py
        - Retry downloads from server up to 5 times, not 3




Index: ArchJob.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/server/ArchJob.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- ArchJob.py	15 Nov 2005 05:20:54 -0000	1.20
+++ ArchJob.py	18 Nov 2005 14:33:59 -0000	1.21
@@ -185,10 +185,12 @@
         if status == 'done':
             dl_dict[DL_STATUS] = STATUS_DONE
         elif status == 'failed':
-            # Retry the download up to 3 times, then fail it
-            if dl_dict[DL_RETRIES] >= 3:
+            # Retry the download up to 5 times, then fail it
+            if dl_dict[DL_RETRIES] >= 5:
                 dl_dict[DL_STATUS] = STATUS_ERROR
             else:
+                print "%s (%s/%s): Failed to retrieve %s (attempt %d), trying again..." % (self.par_job.uid,
+                        self.par_job.package, self._target_dict['arch'], url, dl_dict[DL_RETRIES])
                 dl_dict[DL_STATUS] = STATUS_WAITING
                 dl_dict[DL_WAIT_TIME] = 5  # Wait a bit before trying again
                 dl_dict[DL_RETRIES] = dl_dict[DL_RETRIES] + 1




More information about the fedora-extras-commits mailing list