Queueable Apex Flashcards Preview

Salesforce Data Architecture and Management Designer > Queueable Apex > Flashcards

Flashcards in Queueable Apex Deck (12)
Loading flashcards...
1
Q

What is Queueable Apex used for?

A

to submit jobs for async processing

2
Q

What are 3 benefits queueable has over future methods?

A

queueable allows custom Apex classes and sObjects
You can monitor the completion of a queueable job
You can chain one job to from a running job

3
Q

How many jobs can be chained from a running job?

A

1

4
Q

How can you monitor a queueable job?

A

query the AsyncApexJob based on the job id returned with the job was enqueued.

5
Q

Why should future be used instead of queuable?

A

when the execution of the method is sometimes synchronous and sometimes asynchronous.

6
Q

What must be implemented for a class to be Queueable?

A

The Queueable Interface

7
Q

t/f - functionally, queueable and future are the same.

A

true

8
Q

How is a queueable job added to the queue?

A

System.enqueueJob

9
Q

How many queueables can be added to a single call?

A

50

10
Q

How can we ensure the queuable process runs within the test method?

A

Test.starttest();
System.enqueuejob();
Test.stoptest()

11
Q

How many child jobs can exist for each parent Queuable job?

A

1

12
Q

What is the limit enforced on the depth of chained jobs?

A

No limit is enforced.