abderrahim commented on code in PR #2104:
URL: https://github.com/apache/buildstream/pull/2104#discussion_r2773929468


##########
src/buildstream/_stream.py:
##########
@@ -1828,7 +1828,6 @@ def _add_queue(self, queue, *, track=False):
     def _enqueue_plan(self, plan, *, queue=None):
         queue = queue or self.queues[0]
         queue.enqueue(plan)
-        self.session_elements += plan

Review Comment:
   We pass the list to the queue a bit earlier
   
   ```py
               queue.set_session_elements(self.session_elements)
   ```
   
   which then fills it as elements are getting enqueued.
   
   Yeah, it's a bit confusing but I couldn't find a better way to do it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to