mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
Merge pull request #11954 from ioito/hotfix/qx-worker-sync
fix(region): sync with multi worker
This commit is contained in:
@@ -443,14 +443,7 @@ func (self *SCloudproviderregion) DoSync(ctx context.Context, userCred mcclient.
|
||||
}
|
||||
|
||||
func (self *SCloudproviderregion) getSyncTaskKey() string {
|
||||
region, err := self.GetRegion()
|
||||
if err != nil {
|
||||
return self.CloudregionId
|
||||
}
|
||||
if len(region.ExternalId) > 0 {
|
||||
return region.ExternalId
|
||||
}
|
||||
return self.CloudproviderId
|
||||
return fmt.Sprintf("%d", self.RowId)
|
||||
}
|
||||
|
||||
func (self *SCloudproviderregion) submitSyncTask(ctx context.Context, userCred mcclient.TokenCredential, syncRange SSyncRange) {
|
||||
|
||||
Reference in New Issue
Block a user