diff options
Diffstat (limited to 'buildstream/_scheduler/pullqueue.py')
-rw-r--r-- | buildstream/_scheduler/pullqueue.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/buildstream/_scheduler/pullqueue.py b/buildstream/_scheduler/pullqueue.py index 0d6b5dbfb..f9928a342 100644 --- a/buildstream/_scheduler/pullqueue.py +++ b/buildstream/_scheduler/pullqueue.py @@ -39,6 +39,11 @@ class PullQueue(Queue): # state of dependencies may have changed, recalculate element state element._update_state() + if not element._is_required(): + # Artifact is not currently required but it may be requested later. + # Keep it in the queue. + return QueueStatus.WAIT + if not element._can_query_cache(): return QueueStatus.WAIT |