Skip to content

Commit

Permalink
fix(HybridSaaSPool): create standby sites for all hybrid pool rules (#…
Browse files Browse the repository at this point in the history
…2261)

* fix(HybridPool): check for specific app as per record instead of erpnext app

* fix(HybridPool): dont stop create pooling only one hybrid pool has been replenished
  • Loading branch information
tanmoysrt authored Nov 6, 2024
1 parent 45d65fc commit 29a8a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions press/press/doctype/site/saas_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ def create_hybrid_pool_sites(self):
"Site",
{
"is_standby": 1,
"standby_for": "erpnext",
"standby_for": self.app,
"hybrid_saas_pool": pool_name,
"status": "Active",
},
)

if hybrid_standby_count > self.saas_settings.standby_pool_size:
break
continue

sites_created = 0
while sites_created < self.saas_settings.standby_queue_size:
Expand Down

0 comments on commit 29a8a80

Please sign in to comment.