---
title: Avoid Async scheduling or queueing Operation In Loop.
description: "**Impact area** Manageability **Severity** Low **Affected element** Apex Class ## Rule ID **SF-AVOID-ASYNC-IN-LOOP** ## Impact Sync scheduling or queueing Operation inside loops can cause you to hit the governor limit. ## Remediation Try to batch up the data into a…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/salesforce-rules/avoid-async-scheduling-or-queueing-operation-in-loop/"
updated: "2025-03-21"
category: Rules
---

# Avoid Async scheduling or queueing Operation In Loop.

**Impact area**

Manageability

**Severity**

Low

**Affected element**

Apex Class

## Rule ID

**SF-AVOID-ASYNC-IN-LOOP**

## Impact

Sync scheduling or queueing Operation inside loops can cause you to hit the governor limit.

## Remediation

Try to batch up the data into a list and invoke your async processes once on that list of data outside the loop.

### Time to fix

60 min
