-
Notifications
You must be signed in to change notification settings - Fork 519
QueueableChainingRecipes
pozil edited this page Oct 13, 2020
·
11 revisions
Demonstrates how to use the Queueable interface to chain multiple queueable instances together. The methods in this class, with the exception of the constructor, are run automatically by the system as the job runs. To enqueue this job, use: System.enqueueJob(new QueueableChainingRecipes()); More on the Queuable interface: https:
This recipe demonstrates how one queuable (this one) can enqueue a second Queueable class. If the second queueable class utilizes a constructor, information can be passed through to the next Queueable.
| Param | Description |
|---|---|
context |
Dependency Injected by the System |
System.enqueueJob(new QueueableChainingRecipes());