You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:30:23 UTC

[buildstream] 25/32: pushqueue.py: Use Resources

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 cc9f350ba4b07b1148bbec426dd36a0b2171315e
Author: Tristan Maat <tm...@tlater.net>
AuthorDate: Wed Jul 11 10:42:04 2018 +0100

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

diff --git a/buildstream/_scheduler/queues/pushqueue.py b/buildstream/_scheduler/queues/pushqueue.py
index 77f2e02..568e053 100644
--- a/buildstream/_scheduler/queues/pushqueue.py
+++ b/buildstream/_scheduler/queues/pushqueue.py
@@ -19,8 +19,8 @@
 #        Jürg Billeter <ju...@codethink.co.uk>
 
 # Local imports
-from . import Queue, QueueStatus, QueueType
-from ..jobs import JobType
+from . import Queue, QueueStatus
+from ..resources import ResourceType
 
 
 # A queue which pushes element artifacts
@@ -29,8 +29,7 @@ class PushQueue(Queue):
 
     action_name = "Push"
     complete_name = "Pushed"
-    queue_type = QueueType.PUSH
-    job_type = JobType.PUSH
+    resources = [ResourceType.UPLOAD]
 
     def process(self, element):
         # returns whether an artifact was uploaded or not