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:24 UTC

[buildstream] 26/32: trackqueue.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 3b063bfc2db142e1aa1d869a9d322a98fd778f7c
Author: Tristan Maat <tm...@tlater.net>
AuthorDate: Wed Jul 11 10:42:12 2018 +0100

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

diff --git a/buildstream/_scheduler/queues/trackqueue.py b/buildstream/_scheduler/queues/trackqueue.py
index df3f7b1..c7a8f4c 100644
--- a/buildstream/_scheduler/queues/trackqueue.py
+++ b/buildstream/_scheduler/queues/trackqueue.py
@@ -23,8 +23,8 @@ from ...plugin import _plugin_lookup
 from ... import SourceError
 
 # Local imports
-from . import Queue, QueueStatus, QueueType
-from ..jobs import JobType
+from . import Queue, QueueStatus
+from ..resources import ResourceType
 
 
 # A queue which tracks sources
@@ -33,8 +33,7 @@ class TrackQueue(Queue):
 
     action_name = "Track"
     complete_name = "Tracked"
-    queue_type = QueueType.FETCH
-    job_type = JobType.TRACK
+    resources = [ResourceType.DOWNLOAD]
 
     def process(self, element):
         return element._track()