[Notes] [Git][BuildGrid/buildgrid][mablanch/160-docker-compose] scheduler.py: Unregister peer after internal cleanup



Title: GitLab

Martin Blanchard pushed to branch mablanch/160-docker-compose at BuildGrid / buildgrid

Commits:

1 changed file:

Changes:

  • buildgrid/server/scheduler.py
    ... ... @@ -151,14 +151,14 @@ class Scheduler:
    151 151
                 raise NotFoundError("Operation name does not exist: [{}]"
    
    152 152
                                     .format(operation_name))
    
    153 153
     
    
    154
    -        job.unregister_operation_peer(operation_name, peer)
    
    155
    -
    
    156 154
             if not job.n_peers_for_operation(operation_name):
    
    157 155
                 del self.__jobs_by_operation[operation_name]
    
    158 156
     
    
    159 157
             if not job.n_peers and job.done and not job.lease:
    
    160 158
                 self._delete_job(job.name)
    
    161 159
     
    
    160
    +        job.unregister_operation_peer(operation_name, peer)
    
    161
    +
    
    162 162
         def queue_job_action(self, action, action_digest, platform_requirements=None,
    
    163 163
                              priority=0, skip_cache_lookup=False):
    
    164 164
             """Inserts a newly created job into the execution queue.
    



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