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 d73f953bb7c396ae9e091e49f7aba2bd6a501e57
Author: Tristan Maat <[email protected]>
AuthorDate: Wed Jul 11 10:33:18 2018 +0100

    buildqueue.py: Add resources
---
 buildstream/_scheduler/queues/buildqueue.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/buildstream/_scheduler/queues/buildqueue.py 
b/buildstream/_scheduler/queues/buildqueue.py
index 9b2cbe6..376ef5a 100644
--- a/buildstream/_scheduler/queues/buildqueue.py
+++ b/buildstream/_scheduler/queues/buildqueue.py
@@ -18,9 +18,8 @@
 #        Tristan Van Berkom <[email protected]>
 #        Jürg Billeter <[email protected]>
 
-import os
-from . import Queue, QueueStatus, QueueType
-from ..jobs import CacheSizeJob, CleanupJob, JobType
+from . import Queue, QueueStatus
+from ..resources import ResourceType
 
 
 # A queue which assembles elements
@@ -29,8 +28,7 @@ class BuildQueue(Queue):
 
     action_name = "Build"
     complete_name = "Built"
-    queue_type = QueueType.BUILD
-    job_type = JobType.BUILD
+    resources = [ResourceType.PROCESS]
 
     def process(self, element):
         element._assemble()

Reply via email to