Sfdc Queueable Job
This task starts a Queueable Job in Salesforce. Once started, queueable job will be monitored for completion every 1 minute till completion and Run status will be updated appropriately once Queueable job completes.
Fields

| Field | Info | Description |
|---|---|---|
| Create Job From | Picklist (Apex Class, Apex Script) | Indicates how the Queueable Job should be created. |
| Queueable Class Name | If Create Job From is Apex Class then this field is shown. This is the Queueable Job class name that needs to create Job from. Enter just the class name | |
| Apex Script | If Create Job From is Apex Script then this field is shown. You can enter any apex script that creates a variable named job of type Queueable. Script should not include the System.enqueue statement as Realtask system adds that automatically. | |
| Abort After Mins | Indicates the number of minutes after which if Job is still running, then it will be aborted. This is helpful to clear some Jobs if they are not run or if they are stuck in Zombie state (tend to happen sometimes from our experience) |
Notes
- Upon execution, System will capture the
AsyncApexJobid and keeps it asexternalIdfield in the Run Task. - Note that while Realtask can start as many Queueable Jobs as required, it is upto Salesforce to execute them. If are starting too many jobs, Salesforce will probably start to throttle and execute them really show. If it is simple task, you might consider executing this work as Sfdc Apex Script