Job Timeline on the Record
Every chain linked to a record, live on its record page. Steps, chunk progress, failures, what added what, and a map of what depends on what.
The Salesforce library for Queueable, Batch and Schedule behind one API. No more "Too many queueable jobs". Failures retry or get requeued, and every linked chain shows live on its record.
Your job logic stays the same. Async Lib takes over enqueueing, chaining and tracking.
public class SyncAccountsJob extends QueueableJob {
public override void work() {
// your logic
}
}
Async.queueable(new SyncAccountsJob())
.linkRecord(account.Id)
.chain(new NotifyOwnersJob())
.enqueue();public class SyncAccountsJob implements Queueable {
public void execute(QueueableContext context) {
// your logic
System.enqueueJob(new NotifyOwnersJob());
// one child per Queueable: a second enqueue here throws
// "Too many queueable jobs". Nothing records what ran.
}
}
System.enqueueJob(new SyncAccountsJob());