From 7162f09dfdb8adec6a28ff6c2a2bb183a157d53a Mon Sep 17 00:00:00 2001 From: Tristan Maat Date: Wed, 11 Jul 2018 10:33:51 +0100 Subject: pullqueue.py: Add resources --- buildstream/_scheduler/queues/pullqueue.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/buildstream/_scheduler/queues/pullqueue.py b/buildstream/_scheduler/queues/pullqueue.py index 20e784391..430afc410 100644 --- a/buildstream/_scheduler/queues/pullqueue.py +++ b/buildstream/_scheduler/queues/pullqueue.py @@ -19,8 +19,8 @@ # Jürg Billeter # Local imports -from . import Queue, QueueStatus, QueueType -from ..jobs import JobType +from . import Queue, QueueStatus +from ..resources import ResourceType # A queue which pulls element artifacts @@ -29,8 +29,7 @@ class PullQueue(Queue): action_name = "Pull" complete_name = "Pulled" - queue_type = QueueType.FETCH - job_type = JobType.PULL + resources = [ResourceType.UPLOAD] def process(self, element): # returns whether an artifact was downloaded or not -- cgit v1.2.1