Carry Account work in a Queueable
A Queueable job keeps state in its fields and runs execute later, outside the current transaction.
Your task
Complete execute so the job labels every Account whose Id is in accountIds, with one query and one update.
public class AS_BDD2EE486035_QueueableAccountJob implements Queueable {
private Set<Id> accountIds;
private String reviewLabel;
public AS_BDD2EE486035_QueueableAccountJob(Set<Id> accountIds, String reviewLabel) {
this.accountIds = accountIds;
this.reviewLabel = reviewLabel;
}
public void execute(QueueableContext context) {
}
}Requirements
- updatesEveryAccount should pass
- carriesConstructorLabel should pass
- leavesOtherAccountsAlone should pass
- updatesTwoHundredWithOneUpdate should pass
- waitsForTheJobToRun should pass