Queueable Apex Flashcards

1
Q

What is Queueable Apex used for?

A

to submit jobs for async processing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How many jobs can be chained from a running job?

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can you monitor a queueable job?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why should future be used instead of queuable?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What must be implemented for a class to be Queueable?

A

The Queueable Interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How is a queueable job added to the queue?

A

System.enqueueJob

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How many queueables can be added to a single call?

A

50

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

No limit is enforced.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly