This is an automated email from the ASF dual-hosted git repository.

root pushed a commit to branch testing/local-cache-expiry
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit b356a61385279b60ffe7dfbe4ae8cf8402347e9e
Author: Tristan Maat <[email protected]>
AuthorDate: Wed Jul 11 10:33:25 2018 +0100

    fetchqueue.py: Use resources
---
 buildstream/_scheduler/queues/fetchqueue.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/buildstream/_scheduler/queues/fetchqueue.py 
b/buildstream/_scheduler/queues/fetchqueue.py
index a4ec8ad..265890b 100644
--- a/buildstream/_scheduler/queues/fetchqueue.py
+++ b/buildstream/_scheduler/queues/fetchqueue.py
@@ -22,8 +22,8 @@
 from ... import Consistency
 
 # Local imports
-from . import Queue, QueueStatus, QueueType
-from ..jobs import JobType
+from . import Queue, QueueStatus
+from ..resources import ResourceType
 
 
 # A queue which fetches element sources
@@ -32,8 +32,7 @@ class FetchQueue(Queue):
 
     action_name = "Fetch"
     complete_name = "Fetched"
-    queue_type = QueueType.FETCH
-    job_type = JobType.FETCH
+    resources = [ResourceType.DOWNLOAD]
 
     def __init__(self, scheduler, skip_cached=False):
         super().__init__(scheduler)

Reply via email to