getminimumqueueabledelayinminutes() this example uses stack depth to terminate a chained job and prevent it from reaching the daily maximum number of asynchronous apex method executions. // fibonacci public class fibonaccidepthqueueable implements queueable { private long nminus1, nminus2; public ...
Es muy similar a la prueba de Apex por lotes. Para garantizar que el proceso apto para la inclusión en cola se ejecuta en el método de prueba, el trabajo se envía a la cola en el bloque entre Test.startTest y Test.stopTest. El sistema ejecuta todos los procesos asíncronos ...
Proposed Rule Name: Queueable Should Attach Finalizer Proposed Category: Best Practices Description: We want to warn the author of Apex whenever they write a class implementing the Queueable interface and they fail to attach a Finalizer...
Queueable Apex例: public with sharing class AsyncExecutionExample implements Queueable{ public void...555-1212'); insert accItem; system.debu...
queueable class method. account acct = [ select name , phone from account where name = 'acme' limit 1 ] ; system . assertnotequals ( null , acct ) ; system . assertequals ( '(415) 555-1212' , acct . phone ) ; } } the id of a queueable apex job isn’t returned in test ...