There is a batch class which is calling a Queueable class which is calling another Queueable class .
When batch class runs , there is no errors in debug logs but logic in 2nd Queueable class doesnt get called and when checked in apex jobs , There is a failed job status and reason is All attempts to execute message failed, message was put on dead message queue.
Can you please help and advise ?
1 answer
Hi @sanju C A,
There might be many reasons to see above error. For the batch job Start() method , if the initializing query took over 2 minutes to return. For this you might need the query to be made more selective. Check below article for same.
Make SOQL query selective
https://help.salesforce.com/s/articleView?id=000385218&type=1
Thanks!