Skip to content

Instantly share code, notes, and snippets.

@brianmfear
brianmfear / MonitorAsyncUsage.cls
Last active November 30, 2023 19:01
Notify Admin when approaching Async Apex usage limit
public class MonitorAsyncUsage implements Schedulable {
public class ResourceInfo {
public Integer Max;
public Integer Remaining;
}
public class LimitsAPI {
public ResourceInfo DailyAsyncApexExecutions;
}