Skip to content

Instantly share code, notes, and snippets.

View codefriar's full-sized avatar

Kevin Poorman codefriar

View GitHub Profile
@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;
}