Skip to content

Commit

Permalink
Fix the issue of full cpus/ram when handling corrupted org
Browse files Browse the repository at this point in the history
  • Loading branch information
vinhjaxt authored Aug 11, 2023
1 parent f8d2635 commit 4189cac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions services/orgs/orgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ func (self *OrgManager) Scan() error {

delete(existing, org_id)

if org_record.Id == "" || org_record.Nonce == "" {
logger := logging.GetLogger(self.config_obj, &logging.FrontendComponent)
logger.Info("<yellow>Org is corrupted %v</>", org_id)
continue
}

_, err = self.GetOrgConfig(org_id)
if err != nil {
err = self.startOrg(org_record)
Expand Down

0 comments on commit 4189cac

Please sign in to comment.