From fc4e0eaa2a9e85b78562a4c13b20611872d6f678 Mon Sep 17 00:00:00 2001 From: olveyra Date: Tue, 8 Jul 2008 18:03:20 +0000 Subject: [PATCH] fix a bug with rescheduling a domain when no free slot are in worker (a domain was passed instead of a list, and that raises the one-letter domains bug), also reschedule with priority=0) --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%4048 --- scrapy/trunk/scrapy/contrib/pbcluster/master/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/trunk/scrapy/contrib/pbcluster/master/manager.py b/scrapy/trunk/scrapy/contrib/pbcluster/master/manager.py index c889facb0..7abced133 100644 --- a/scrapy/trunk/scrapy/contrib/pbcluster/master/manager.py +++ b/scrapy/trunk/scrapy/contrib/pbcluster/master/manager.py @@ -80,7 +80,7 @@ class Node: def _run_callback(status): if status['callresponse'][0] == 1: #slots are complete. Reschedule in master. This is a security issue because could happen that the slots were completed since last status update by another cluster (thinking at future with full-distributed worker-master clusters) - self.master.schedule(pending['domain'], pending['settings'], pending['priority']) + self.master.schedule([pending['domain']], pending['settings'], PRIORITY_NOW) log.msg("Domain %s rescheduled: no proc space in node." % pending['domain'], log.WARNING) self._set_status(status)