buildgrid 0.2.50__py3-none-any.whl → 0.2.51__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1822,11 +1822,7 @@ class Scheduler:
1822
1822
  # it are requeued and the existing record deleted. A new record is then
1823
1823
  # created with the new bot_id/name combination, as it would in the
1824
1824
  # unknown case.
1825
- locate_bot_stmt = (
1826
- select(BotEntry)
1827
- .where(BotEntry.bot_id == bot_session_id, self._bot_in_instance_pool())
1828
- .with_for_update()
1829
- )
1825
+ locate_bot_stmt = select(BotEntry).where(BotEntry.bot_id == bot_session_id).with_for_update()
1830
1826
  self._close_bot_sessions(session, session.execute(locate_bot_stmt).scalars().all())
1831
1827
 
1832
1828
  session.add(
@@ -1866,9 +1862,7 @@ class Scheduler:
1866
1862
 
1867
1863
  def close_bot_sessions(self, bot_name: str) -> None:
1868
1864
  with self._sql.session() as session:
1869
- locate_bot_stmt = (
1870
- select(BotEntry).where(BotEntry.name == bot_name, self._bot_in_instance_pool()).with_for_update()
1871
- )
1865
+ locate_bot_stmt = select(BotEntry).where(BotEntry.name == bot_name).with_for_update()
1872
1866
  self._close_bot_sessions(session, session.execute(locate_bot_stmt).scalars().all())
1873
1867
 
1874
1868
  def _close_bot_sessions(self, session: Session, bots: Sequence[BotEntry]) -> None:
@@ -13,4 +13,4 @@
13
13
  # limitations under the License.
14
14
 
15
15
 
16
- __version__ = "0.2.50"
16
+ __version__ = "0.2.51"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: buildgrid
3
- Version: 0.2.50
3
+ Version: 0.2.51
4
4
  Summary: A remote execution service
5
5
  License: Apache License, Version 2.0
6
6
  Project-URL: Homepage, https://buildgrid.build
@@ -208,7 +208,7 @@ buildgrid/server/servicer.py,sha256=oqU9MaSxxHTDmSxobFTo9YmJctaUCklE2Dj-vfYWKkc,
208
208
  buildgrid/server/settings.py,sha256=Iy4eS9Putr5GroIVqYNeTcRY7gbvq29wgQoMDQgPJtA,5604
209
209
  buildgrid/server/threading.py,sha256=4QKQYev2KoO2Q-S_OyaoR9qpWyDTVzGMWVe9o2a1yIU,4743
210
210
  buildgrid/server/types.py,sha256=xG3bx64pbWMuEwXLuI0o8c2unt2rU2C4zsmUfmMT12c,1323
211
- buildgrid/server/version.py,sha256=ya_5m0ircwMCvSQZL7Ya73NVmVBoDYlp7_e1JFK_Yf8,604
211
+ buildgrid/server/version.py,sha256=vQ-UqqKI4ZygHHTy9nT5m5LZ0HMMCBnoGJaa0l_CVs4,604
212
212
  buildgrid/server/actioncache/__init__.py,sha256=g9lb8Sn7NY5KOjkMr9GQoJovCVDEg_Fxz_EhdDbhP1I,579
213
213
  buildgrid/server/actioncache/instance.py,sha256=UCR7ZGkv4fJOXjeIILMAdTSFWcGgBSYlBg8fMaPJpaI,3139
214
214
  buildgrid/server/actioncache/service.py,sha256=WcikJAzFYOYX-tgiOfGGcOnPoubrCd4yP-EhKCHEW0c,2021
@@ -334,7 +334,7 @@ buildgrid/server/scheduler/__init__.py,sha256=arCg8LWFATeX1tj-s0keVYP8p3wwrrUlCV
334
334
  buildgrid/server/scheduler/assigner.py,sha256=wHPAhyiQxYABZJXaUc2g5yFzM78Z0U5nvGV3X9h5pCM,10512
335
335
  buildgrid/server/scheduler/cohorts.py,sha256=L_5YZRiVOwPPGStfqnnQXknO5Ja-SC0vq0xjw4XgP-I,1426
336
336
  buildgrid/server/scheduler/events.py,sha256=cM7Z7Htr2pYKhltJxfg1YRo0q524yZaGm8yXvRehivk,1453
337
- buildgrid/server/scheduler/impl.py,sha256=F0kkWw-BufGmaUNeB1buGQZ0EOi0GtJGvhiWrVIH_2E,137315
337
+ buildgrid/server/scheduler/impl.py,sha256=QMrt4ATiGeuvCtZ50ga07ZE3Ch8b1RUIO94741PHwnY,137157
338
338
  buildgrid/server/scheduler/notifier.py,sha256=uypoIXZowpAIsDQ728VCuFJ4MN2zJld1npnanCWHTrw,8854
339
339
  buildgrid/server/scheduler/properties.py,sha256=2GydX8KUy9MFv1_JznIkGfWE_wOS0m_XapSv6Gp4pCM,11260
340
340
  buildgrid/server/sql/__init__.py,sha256=zbeeRP9BEeDzR-Mx2Ip6SUr49J8eeXsuREgljJTrHkk,579
@@ -368,9 +368,9 @@ buildgrid/server/utils/async_lru_cache.py,sha256=iLKeRPoZtZb1wC5AtcyQm8Wt0Bx-KZm
368
368
  buildgrid/server/utils/bots.py,sha256=c8hn7tbCecru-m2wicRmtKU5v5rSZPGlk97Yc6eUHgQ,1729
369
369
  buildgrid/server/utils/cancellation.py,sha256=pNETzKNoXg0AsXOXKCcLWlFl7SVKdkKinlqWl7MesRA,1703
370
370
  buildgrid/server/utils/digests.py,sha256=YNrWeHdbNp7OVTcsInjs30C33z_t9GQ_noMd14bpqPQ,2424
371
- buildgrid-0.2.50.dist-info/licenses/LICENSE,sha256=swa3Vs7GgALaG9p-e05M-WLkhd_U9QknacNkyVZ85xA,11338
372
- buildgrid-0.2.50.dist-info/METADATA,sha256=o23bxshy0s-LF2hrppHEwkMKWcMsoPFUCSPPOnD3VlE,7040
373
- buildgrid-0.2.50.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
374
- buildgrid-0.2.50.dist-info/entry_points.txt,sha256=uyFAXiR9d6EDfSA5vWT8xskz6xalt4PdTuRruT6Q8rk,49
375
- buildgrid-0.2.50.dist-info/top_level.txt,sha256=T6TYhI_k6NTm2871tIxGCyBIqzlKxylgF9KDLU0Hi7o,10
376
- buildgrid-0.2.50.dist-info/RECORD,,
371
+ buildgrid-0.2.51.dist-info/licenses/LICENSE,sha256=swa3Vs7GgALaG9p-e05M-WLkhd_U9QknacNkyVZ85xA,11338
372
+ buildgrid-0.2.51.dist-info/METADATA,sha256=A1xvUza-jAV7ZU50Ndqo56I3AaPIWGJ7cAQuLSRrw-o,7040
373
+ buildgrid-0.2.51.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
374
+ buildgrid-0.2.51.dist-info/entry_points.txt,sha256=uyFAXiR9d6EDfSA5vWT8xskz6xalt4PdTuRruT6Q8rk,49
375
+ buildgrid-0.2.51.dist-info/top_level.txt,sha256=T6TYhI_k6NTm2871tIxGCyBIqzlKxylgF9KDLU0Hi7o,10
376
+ buildgrid-0.2.51.dist-info/RECORD,,