diff options
author | Jürg Billeter <j@bitron.ch> | 2017-05-29 14:01:19 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2017-06-27 10:30:29 +0200 |
commit | efc9ff5ec9baed41d24a1b18388eff50f022f34f (patch) | |
tree | e188c3a7d70ab8b9ddf9a70228282a40553a2ed1 /buildstream/_scheduler | |
parent | 169375ae540c1a60a0b49407eef6200d8317e93a (diff) | |
download | buildstream-efc9ff5ec9baed41d24a1b18388eff50f022f34f.tar.gz |
scheduler: Add push queue type
Diffstat (limited to 'buildstream/_scheduler')
-rw-r--r-- | buildstream/_scheduler/queue.py | 3 | ||||
-rw-r--r-- | buildstream/_scheduler/scheduler.py | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/buildstream/_scheduler/queue.py b/buildstream/_scheduler/queue.py index e13008233..ce0a1e682 100644 --- a/buildstream/_scheduler/queue.py +++ b/buildstream/_scheduler/queue.py @@ -36,6 +36,9 @@ class QueueType(): # CPU/Disk intensive tasks BUILD = 2 + # Tasks which upload stuff to the internet + PUSH = 3 + # Queue() # diff --git a/buildstream/_scheduler/scheduler.py b/buildstream/_scheduler/scheduler.py index d0505acf5..8530f96e2 100644 --- a/buildstream/_scheduler/scheduler.py +++ b/buildstream/_scheduler/scheduler.py @@ -80,7 +80,8 @@ class Scheduler(): # the user configuration self.job_tokens = { QueueType.FETCH: context.sched_fetchers, - QueueType.BUILD: context.sched_builders + QueueType.BUILD: context.sched_builders, + QueueType.PUSH: context.sched_pushers } # Some local state |