[Notes] [Git][BuildStream/buildstream][master] 2 commits: _scheduler/queues: Don't call update state outside of error handling harness



Title: GitLab

Tristan Van Berkom pushed to branch master at BuildStream / buildstream

Commits:

2 changed files:

Changes:

  • buildstream/_scheduler/queues/buildqueue.py
    ... ... @@ -106,10 +106,16 @@ class BuildQueue(Queue):
    106 106
     
    
    107 107
         def done(self, job, element, result, success):
    
    108 108
     
    
    109
    -        if success:
    
    110
    -            # Inform element in main process that assembly is done
    
    111
    -            element._assemble_done()
    
    109
    +        # Inform element in main process that assembly is done
    
    110
    +        element._assemble_done()
    
    112 111
     
    
    113
    -            # This has to be done after _assemble_done, such that the
    
    114
    -            # element may register its cache key as required
    
    112
    +        # This has to be done after _assemble_done, such that the
    
    113
    +        # element may register its cache key as required
    
    114
    +        #
    
    115
    +        # FIXME: Element._assemble() does not report both the failure state and the
    
    116
    +        #        size of the newly cached failed artifact, so we can only adjust the
    
    117
    +        #        artifact cache size for a successful build even though we know a
    
    118
    +        #        failed build also grows the artifact cache size.
    
    119
    +        #
    
    120
    +        if success:
    
    115 121
                 self._check_cache_size(job, element, result)

  • buildstream/_scheduler/queues/queue.py
    ... ... @@ -292,7 +292,6 @@ class Queue():
    292 292
         # See the Job object for an explanation of the call signature
    
    293 293
         #
    
    294 294
         def _job_done(self, job, element, success, result):
    
    295
    -        element._update_state()
    
    296 295
     
    
    297 296
             # Update values that need to be synchronized in the main task
    
    298 297
             # before calling any queue implementation
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]