diff --git a/pkg/compute/models/cloudaccounts.go b/pkg/compute/models/cloudaccounts.go index 2dc60ca4b7..b07ec7851b 100644 --- a/pkg/compute/models/cloudaccounts.go +++ b/pkg/compute/models/cloudaccounts.go @@ -1903,9 +1903,11 @@ func (account *SCloudaccount) SubmitSyncAccountTask(ctx context.Context, userCre defer cloudaccountPendingSyncsMutex.Unlock() if _, ok := cloudaccountPendingSyncs[account.Id]; ok { if waitChan != nil { - // an active cloudaccount sync task is running, return with conflict error - log.Errorf("an active cloudaccount sync task is running, early return with conflict error") - waitChan <- errors.Wrap(httperrors.ErrConflict, "cloudaccountPendingSyncs") + go func() { + // an active cloudaccount sync task is running, return with conflict error + log.Errorf("an active cloudaccount sync task is running, early return with conflict error") + waitChan <- errors.Wrap(httperrors.ErrConflict, "cloudaccountPendingSyncs") + }() } return }